Hi, I'm using the completion suggester for an autocomplete API. I need it
to autocomplete on middle words, so for example "Siberian Tiger" should be
a suggestion for "tig". To accomplish that, following the documentation,
what I do is to use multiple inputs for each term, so I index "Siberian",
"Tiger" and also "Siberian Tiger" (so I get the result if the term is
"siberian tig").

Now, what doesn't work entirely for me in this case is the result ordering
I get. Assuming equal weights, for "tig" It is something like:

"Bengal Tiger"
"Sand Tiger Shark"
"Siberian Tiger"
"Tiger Salamander"
"Tiger Shark"
"Tiger"


That is an alphabetical ordering. I'd rather like to get the terms closer
to the input string first, like:

"Tiger"
"Tiger Salamander"
"Tiger Shark"
"Bengal Tiger"
"Sand Tiger Shark"
"Siberian Tiger"


I realize this can't be accomplished with my current setup, but haven't
found an alternative either, is there any?

Thanks,
Facuindo.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAKEP69VwQgKtf_iGh3a0taVP_B80WGLbrvm88M5F1qsSopkKTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to