Total number of hits is less than expected


(Pavlo) #1

Hello. I am using autogenerated index for documents with string field. When I try to search the prefix of the word, I do not receive expected document in the result and overall number of hits is less than expected.

"match":{
"displayAs":{
"type":"phrase_prefix",
"query":"ot_",
"zero_terms_query":"all"
}
}

When I try to enter more information in query string, I managed to receive expected document. Why does this happen? Is it possible to configure it to receive all matched documents?


(Nik Everett) #2

Have a look at the max_expansions parameter.


(Pavlo) #3

Thank you. This is really the cause


(system) #4