# Cannot search for text "WAS"?

**URL:** <https://discuss.elastic.co/t/cannot-search-for-text-was/7970>\
**Category:** Elasticsearch\
**Created:** [June 4, 2012, 3:26pm UTC](https://discuss.elastic.co/t/cannot-search-for-text-was/7970 "2012-06-04T15:26:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zibarth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zibarth/32/2861_2.png) [@zibarth](https://discuss.elastic.co/u/zibarth)\
**Post date:** [June 4, 2012, 3:26pm UTC](https://discuss.elastic.co/t/cannot-search-for-text-was/7970/1 "2012-06-04T15:26:08Z")

</div>

I'm running into a strange issue where I don't get results when I do a query string search for "WAS". Any other string I search for works fine, as far as I'm aware.

I've created a gist to walk anyone through what I'm doing:

> <https://gist.github.com/zibarth/2854076>

Is "WAS" some kind of keyword in ElasticSearch?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 8, 2012, 11:39am UTC](https://discuss.elastic.co/t/cannot-search-for-text-was/7970/2 "2012-06-08T11:39:19Z")

</div>

It's an english common word. So, if you use default mapping for strings, words  
like the, are, was, ... are not indexed.  
See here :

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

[http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html](http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html)  
It uses the default token filter

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

[http://www.elasticsearch.org/guide/reference/index-modules/analysis/stop-tokenfilter.html](http://www.elasticsearch.org/guide/reference/index-modules/analysis/stop-tokenfilter.html)

HTH  
David.

Le 4 juin 2012 à 17:26, zibarth [zibarthtx@gmail.com](mailto:zibarthtx@gmail.com) a écrit :

> I'm running into a strange issue where I don't get results when I do a query  
> string search for "WAS". Any other string I search for works fine, as far as  
> I'm aware.
> 
> I've created a gist to walk anyone through what I'm doing:  
> [ElsaticSearch mapping and documents demonstrating the WAS problem · GitHub](https://gist.github.com/2854076)
> 
> Is "WAS" some kind of keyword in Elasticsearch?
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Cannot-search-for-text-WAS-tp4018790.html](http://elasticsearch-users.115913.n3.nabble.com/Cannot-search-for-text-WAS-tp4018790.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
David Pilato  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet

---

<div class="post-metadata">

**Author:** ![zibarth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zibarth/32/2861_2.png) [@zibarth](https://discuss.elastic.co/u/zibarth)\
**Post date:** [June 11, 2012, 9:51pm UTC](https://discuss.elastic.co/t/cannot-search-for-text-was/7970/3 "2012-06-11T21:51:53Z")

</div>

Thanks for the info!

---

<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, 3:24am UTC](https://discuss.elastic.co/t/cannot-search-for-text-was/7970/4 "2017-07-06T03:24:53Z")

</div>

Closed on July 6, 2017, 3:24am UTC


