# Problem with specific query

**URL:** <https://discuss.elastic.co/t/problem-with-specific-query/2925>\
**Category:** Elasticsearch\
**Created:** [April 23, 2010, 12:29am UTC](https://discuss.elastic.co/t/problem-with-specific-query/2925 "2010-04-23T00:29:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walendo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/walendo/32/3348_2.png) [@Walendo](https://discuss.elastic.co/u/Walendo)\
**Post date:** [April 23, 2010, 12:29am UTC](https://discuss.elastic.co/t/problem-with-specific-query/2925/1 "2010-04-23T00:29:07Z")

</div>

Hello,

A strange (or maybe not to strange) problem occurs when I try search  
all the cities of an state whose code is "to" (  
[http://localhost:9200/ig/cidade/\_search?q=estado:to](http://localhost:9200/ig/cidade/_search?q=estado:to)). Nothing is  
returned, although there are results for the query.

Is "to" some kind of reserved word? If I use toc, it works.

Thanks.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 23, 2010, 3:36pm UTC](https://discuss.elastic.co/t/problem-with-specific-query/2925/2 "2010-04-23T15:36:24Z")

</div>

Yep, to is a stop word (in the standard analyzer) so it gets removed when  
the query gets analyzed.

cheers,  
shay.banon

On Fri, Apr 23, 2010 at 3:29 AM, Walendo [jorge.walendowsky@gmail.com](mailto:jorge.walendowsky@gmail.com)wrote:

> Hello,
> 
> A strange (or maybe not to strange) problem occurs when I try search  
> all the cities of an state whose code is "to" (  
> [http://localhost:9200/ig/cidade/\_search?q=estado:to](http://localhost:9200/ig/cidade/_search?q=estado:to)). Nothing is  
> returned, although there are results for the query.
> 
> Is "to" some kind of reserved word? If I use toc, it works.
> 
> Thanks.

---

<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, 4:24am UTC](https://discuss.elastic.co/t/problem-with-specific-query/2925/3 "2017-07-06T04:24:26Z")

</div>

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


