elasticsearch - Elastic Search - Exact phrase search with wildcards -


i looking on exact phrase search wild card.

querybuilders.multimatchquery("java se", "title", "subtitle")     .type(matchquerybuilder.type.phrase_prefix); 

the above query, returns following results.

1) java search 2) elastic java search

trailing wildcard works.

but, when search below query,

querybuilders.multimatchquery("ava se", "title", "subtitle")     .type(matchquerybuilder.type.phrase_prefix); 

it not return nothing matches "ava se". expecting same result above.

leading wildcard not work. there anyway achieve this?

thanks, baskar.s

you need use ngram analyzer or edgengram better idea. once have done , index might bit heavy affix search work fine without wild cards.


Popular posts from this blog