# Match\_phrase not matching all terms

**URL:** <https://discuss.elastic.co/t/match-phrase-not-matching-all-terms/162221>\
**Category:** Elasticsearch\
**Created:** [December 27, 2018, 10:42am UTC](https://discuss.elastic.co/t/match-phrase-not-matching-all-terms/162221 "2018-12-27T10:42:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mkarmi](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mkarmi](https://discuss.elastic.co/u/mkarmi)\
**Post date:** [December 28, 2018, 1:01pm UTC](https://discuss.elastic.co/t/match-phrase-not-matching-all-terms/162221/5 "2018-12-28T13:01:20Z")

</div>

@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`

> [@Edge ngram with phrase matching](https://discuss.elastic.co/t/edge-ngram-with-phrase-matching/57580):
>
> 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: ..…

---

_[View the full topic](https://discuss.elastic.co/t/match-phrase-not-matching-all-terms/162221)._
