edgeNGram filter prefix scoring precedence

Hi

I am attempting to use the edgeNGram filter for autocomplete. This works,
but I wish to do a prefix based edgeNGram search so that fields beginning
with a matching token appear first in the result set (in a manner similar
to the phrase_prefix query). For example:

Searching for: "brow bea"

should score the field containing: "brown bear" higher than the field
that contains "red brown bear". In my configuration both of these
searches end up with the same score.

I have tried executing this query with match_phrase to no avail. If I use
a "phrase_prefix" query I get the correct result - but I understand this is
a slower approach.

Any advice appreciated.
Cheers,
John

--
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.