From 8d09fe63cfbca74102241bbe00545693a5b5a22b Mon Sep 17 00:00:00 2001 From: Sean Story Date: Tue, 30 Jan 2024 13:38:13 -0600 Subject: [PATCH] simplify DLS role descriptor --- .gitignore | 1 + example-apps/internal-knowledge-search/api/app.py | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 3ff442e7..80efea55 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # osx .idea +*.iml .DS_Store .ipynb_checkpoints *.egg-info diff --git a/example-apps/internal-knowledge-search/api/app.py b/example-apps/internal-knowledge-search/api/app.py index cc9daaf3..ade85497 100644 --- a/example-apps/internal-knowledge-search/api/app.py +++ b/example-apps/internal-knowledge-search/api/app.py @@ -134,8 +134,6 @@ def api_key(): "template": { "params": {"access_control": permissions}, "source": """{ - "bool": { - "filter": { "bool": { "should": [ { @@ -154,9 +152,7 @@ def api_key(): } ] } - } - } - }""", + }""", } }, }