Skip to content

Commit

Permalink
Exclude passages from browse requests
Browse files Browse the repository at this point in the history
  • Loading branch information
olaughter committed Apr 4, 2024
1 parent 629fb1d commit ba51ce8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 160 deletions.
1 change: 1 addition & 0 deletions app/api/api_v1/routers/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def _search_request(db: Session, search_body: SearchRequestBody) -> SearchRespon
is_browse_request = not search_body.query_string
if is_browse_request:
search_body.all_results = True
search_body.documents_only = True
search_body.exact_match = False
data_access_search_params = create_vespa_search_params(db, search_body)
try:
Expand Down
Loading

0 comments on commit ba51ce8

Please sign in to comment.