# Phrase search on 'keyword' analyzed field?

**URL:** <https://discuss.elastic.co/t/phrase-search-on-keyword-analyzed-field/79567>\
**Category:** Elasticsearch\
**Created:** [March 22, 2017, 10:32am UTC](https://discuss.elastic.co/t/phrase-search-on-keyword-analyzed-field/79567 "2017-03-22T10:32:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [March 22, 2017, 10:32am UTC](https://discuss.elastic.co/t/phrase-search-on-keyword-analyzed-field/79567/1 "2017-03-22T10:32:15Z")

</div>

Hi,  
If my data to be indexed is like "int a = (c+d)\*(e/f)" and i use keyword analyzer , what kind of query would help me find results for "(c+d)".

I tried using whitespace analyzer too - in that case when i do a phrase search it returns results only for "(c+d)\*(e/f)" as the split for terms is based on space. But is my query is (c+d) no results are obtained.

Any help?

Thanks, Divya

---

<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:** [April 19, 2017, 10:32am UTC](https://discuss.elastic.co/t/phrase-search-on-keyword-analyzed-field/79567/2 "2017-04-19T10:32:47Z")

</div>

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