Skip to content

Commit

Permalink
Remove max_hits query param and add group by condition
Browse files Browse the repository at this point in the history
  • Loading branch information
patelneel55 committed Jan 13, 2021
1 parent 86c8b6b commit e268dda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/functions/typesense.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ exports.search = (queryParams, host, port, apiKey, targetIndex) => {
'page': queryParams.page,
'query_by': 'entity,keywords,text,transcript,file_name',
'per_page': 250,
'max_hits': 'all'
'group_by': 'file_name',
'group_limit': 1
}
if(queryParams.sortType != "relevant")
searchParameters["sort_by"] = queryParams.sortType
Expand Down

0 comments on commit e268dda

Please sign in to comment.