From a014cb7792e1ae099981546346252935957b8043 Mon Sep 17 00:00:00 2001 From: Weves Date: Mon, 23 Oct 2023 00:09:17 -0700 Subject: [PATCH] Fix admin search --- backend/danswer/server/search_backend.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/danswer/server/search_backend.py b/backend/danswer/server/search_backend.py index 27381b2e04d..72c7c54498f 100644 --- a/backend/danswer/server/search_backend.py +++ b/backend/danswer/server/search_backend.py @@ -62,7 +62,6 @@ class AdminSearchRequest(BaseModel): query: str - filters: IndexFilters class AdminSearchResponse(BaseModel): @@ -76,14 +75,13 @@ def admin_search( db_session: Session = Depends(get_session), ) -> AdminSearchResponse: query = question.query - filters = question.filters logger.info(f"Received admin search query: {query}") user_acl_filters = build_access_filters_for_user(user, db_session) final_filters = IndexFilters( - source_type=filters.source_type, - document_set=filters.document_set, - time_cutoff=filters.time_cutoff, + source_type=None, + document_set=None, + time_cutoff=None, access_control_list=user_acl_filters, ) document_index = get_default_document_index()