# How to search for “OR” word inside a Field on ElasticSearch?

**URL:** <https://discuss.elastic.co/t/how-to-search-for-or-word-inside-a-field-on-elasticsearch/12461>\
**Category:** Elasticsearch\
**Created:** [June 18, 2013, 2:17pm UTC](https://discuss.elastic.co/t/how-to-search-for-or-word-inside-a-field-on-elasticsearch/12461 "2013-06-18T14:17:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![poncho1984](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@poncho1984](https://discuss.elastic.co/u/poncho1984)\
**Post date:** [June 18, 2013, 2:17pm UTC](https://discuss.elastic.co/t/how-to-search-for-or-word-inside-a-field-on-elasticsearch/12461/1 "2013-06-18T14:17:50Z")

</div>

I´m having a problem when I try to search into a field that stores the states acronyms.

I have the next query:

{  
"query": {  
"query\_string": {  
"query": "field\_state:'OR' AND type:incentive"  
}  
}  
}  
And the problem comes when i try to get the results for the Oregon State (OR). For all the other states works but with this particular one is like the Elasticsearch takes the "OR" as a condition an retrieves all.

Is there a way to make this work????, i have try it with terms, prefix filters, and all with the same results.

---

<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:** [July 6, 2017, 2:30am UTC](https://discuss.elastic.co/t/how-to-search-for-or-word-inside-a-field-on-elasticsearch/12461/2 "2017-07-06T02:30:36Z")

</div>


