dsl - Elasticsearch query too many results -



dsl - Elasticsearch query too many results -

i'm tring set simple search homecoming me simple results custom ordering, ordering fine based on custom score.

the problem query

"query": { "query_string": { "query": query_term, "fields": ["name_auto"], } }

note: name_auto border n gram field on elastics

i result set if query not create sense.

example:

i have elastcisearch index populated name of android applications. if search face results related ordered number of comments on play store, menans [facebook, facebook messenger, ...]

the problem when query facesomeuselesschars still same results before fore sure there nil match "someuselesschars".

can help

elasticsearch homecoming results match query, if score of results poor. query 'facesomeuselesschars' match has 'face' in because of ngrams (e.g. first 4 characters of query match multiple tokens in index).

the rest of characters in query lower score of returned match, not prevent beingness returned.

if want set minimum score result must reach, can utilize min_score parameter.

elasticsearch dsl

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -