# Phrase match on an index analyzed with stemmer

**URL:** https://discuss.elastic.co/t/phrase-match-on-an-index-analyzed-with-stemmer/85124
**Category:** Elasticsearch
**Created:** [May 9, 2017, 3:21pm UTC](https://discuss.elastic.co/t/phrase-match-on-an-index-analyzed-with-stemmer/85124 "2017-05-09T15:21:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Bhargavi\_Sri](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@Bhargavi\_Sri](https://discuss.elastic.co/u/Bhargavi_Sri)
#### Post date: [May 9, 2017, 3:21pm UTC](https://discuss.elastic.co/t/phrase-match-on-an-index-analyzed-with-stemmer/85124/1 "2017-05-09T15:21:43Z")

</div>

I have my index analyzed using a stemmer but I wanted to know if I can search for phrases without inflectional forms.

`es.indices.create(index='bhar',body = { "settings":{ "analysis":{ "analyzer":{ "my_stop_analyzer":{ "type":"custom", "tokenizer":"standard", "filter":["english_possessive_stemmer","lowercase","english_stop","english_stemmer"] } }, "filter":{ "english_stop":{ "type":"stop", "stopwords":"_english_" }, "english_stemmer":{ "type":"stemmer", "name":"english" }, "english_possessive_stemmer": { "type": "stemmer", "language": "possessive_english" } } } }, "mappings":{ "my_type":{ "properties":{ "test": { "type":"text", "analyzer" : "my_stop_analyzer" } } } } })`

And one record has data that is " picks towering".  
When I search for "pick tower", it still gives me a result with `match_phrase` which I wrote like this:  
`scroll = elasticsearch.helpers.scan(es, query={"query":{"match_phrase":{ "test":{"query":"pick rule"} } }}, index='bhar', scroll='100s')`

Is there any way I can get only the exact match of the phrase? Thank you

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 6, 2017, 3:32pm UTC](https://discuss.elastic.co/t/phrase-match-on-an-index-analyzed-with-stemmer/85124/2 "2017-06-06T15:32:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
