mkarmi
(Mohammad Karmi)
December 28, 2018, 1:01pm
5
@abdon
I was looking on examples about the end_offset and it's not the same as you posted, can you please let me know what I'm missing ?
the next link shows the end offset increases relatively to the word length, and there are many examples so , that's why I thought h
should end at 1
I need to autocomplete phrases. For example, when I search "dementia in alz", I want to get "dementia in alzheimer's".
For this, I configured Edge NGram tokenizer. I tried both edge_ngram_analyzer and standard as the analyzer in the query body. Nevertheless, I can't get results when I'm trying to match a phrase.
What am I doing wrong?g?
My query:
{ "query":{ "multi_match":{ "query":"dementia in alz", "type":"phrase", "analyzer":"edge_ngram_analyzer", "fields":["_all"] } } }
My mappings:
..…