Problem with indexing/searching for the word "no"

Hello,

I'm having problem with indexing (or searching ?) for the word "no".
I have some pseudo tweets in the base and I can search for "na" or
"nt" for example but but for "no".

The request is :

{
"query":
{
"term":
{"message":"no"}
}
}

Is "no" a reserved keyword ?

Regards.

Its a default stopword, so during analysis of a field, it gets removed. You can either create an analyzer that has no stop words, or even have the field non analyzed.

On Friday, June 10, 2011 at 11:45 AM, Clément Notin wrote:

Hello,

I'm having problem with indexing (or searching ?) for the word "no".
I have some pseudo tweets in the base and I can search for "na" or
"nt" for example but but for "no".

The request is :

{
"query":
{
"term":
{"message":"no"}
}
}

Is "no" a reserved keyword ?

Regards.

Thanks for your quick answer.
ES is a great product !

On Jun 10, 11:16 am, Shay Banon shay.ba...@elasticsearch.com wrote:

Its a default stopword, so during analysis of a field, it gets removed. You can either create an analyzer that has no stop words, or even have the field non analyzed.

On Friday, June 10, 2011 at 11:45 AM, Clément Notin wrote:

Hello,

I'm having problem with indexing (or searching ?) for the word "no".
I have some pseudo tweets in the base and I can search for "na" or
"nt" for example but but for "no".

The request is :

{
"query":
{
"term":
{"message":"no"}
}
}

Is "no" a reserved keyword ?

Regards.