Skip to content

Commit

Permalink
Bump data-access & tweak result hits value for Vespa search (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Wright authored Nov 7, 2023
1 parent 4e07b36 commit 9071370
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 126 deletions.
2 changes: 1 addition & 1 deletion app/core/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ def process_vespa_search_response(
) -> SearchResponse:
"""Process a Vespa search response into a F/E search response"""
return SearchResponse(
hits=vespa_search_response.total_hits,
hits=len(vespa_search_response.families),
query_time_ms=vespa_search_response.query_time_ms or 0,
total_time_ms=vespa_search_response.total_time_ms or 0,
continuation_token=vespa_search_response.continuation_token,
Expand Down
Loading

0 comments on commit 9071370

Please sign in to comment.