From 76e68ee69b3e66320cfd9429483ad46a595e887c Mon Sep 17 00:00:00 2001 From: Sean Story Date: Wed, 31 Jan 2024 09:33:28 -0600 Subject: [PATCH] simplify DLS role descriptor (#180) --- .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(): } ] } - } - } - }""", + }""", } }, }