Skip to content

Commit

Permalink
services: records: CompositeSuggestQueryParser: Filter out stopwords
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 committed Feb 12, 2025
1 parent 0e685db commit 74510e7
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ def __init__(self, identity=None, extra_params=None, clauses=None, **kwargs):
# multiple fields (e.g. full name + affiliation + affiliation acronym).
{"type": "cross_fields", "boost": 3},
# "bool_prefix" is useful for search-as-you-type/auto completion features.
# It works in conjunction with having one or more search_as_you_type fields
# or custom ngram-analyzed fields.
{"type": "bool_prefix", "boost": 2, "fuzziness": "AUTO"},
# "most_fields" is just here to boost results where more fields match the
# It works in conjunction with having search_as_you_type fields but for custom
# edge-ngram-analyzed fields it is not needed because the expansions already
# exist in the index, so essentially, bool_prefix is doing the same work
# {"type": "bool_prefix", "boost": 2, "fuzziness": "AUTO"},
# "most_fields" is here to boost results where more fields match the
# query. E.g. the query "john doe acme" would match "name:(john doe)" and
# "affiliation.acronym:(acme)", instead of a case where only one field
# like "name:(john doe acme)" matches.
Expand Down

0 comments on commit 74510e7

Please sign in to comment.