Problem with specific query

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). Nothing is
returned, although there are results for the query.

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

Thanks.

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.comwrote:

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). Nothing is
returned, although there are results for the query.

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

Thanks.