let\'s say that in my elasticsearch index I have a field called \"dots\" which will contain a string of punctuation separated words (e.g. \"first.second.third\").
I
There is also a much easier way, as pointed out in elasticsearch documentation:
just use:
{ "text_phrase_prefix" : { "fieldname" : "yourprefix" } }
or since 0.19.9:
{ "match_phrase_prefix" : { "fieldname" : "yourprefix" } }
instead of:
{ "prefix" : { "fieldname" : "yourprefix" }