What's the error with this simple term query?

Hi guys,

I've got this so simple query that I can't make it work, I've been
wondering if some of you can give me some insights on why it does not work?
I've gisted it here

Cheers

~M

--

The shuttleService field is analyzed by the StandardAnalyzer, so it will be
lowercased in the index. Term queries are not analyzed, so the search term
is not lowercased. Matches are case-sensitive, so NOTINC!=notinc.

You can either index the field as not_analyzed, or use an query that
analyzes the search term such as Match.

In addition, because you are using nested documents, the field name is pckg.
shuttleService.

Cheers,

Ivan

On Thu, Nov 22, 2012 at 8:46 AM, maverick mauricio.alarcon@gmail.comwrote:

Hi guys,

I've got this so simple query that I can't make it work, I've been
wondering if some of you can give me some insights on why it does not work?
I've gisted it here

https://gist.github.com/4132033

Cheers

~M

--

--

Thank you Ivan

Indeed setting the fields as not_analyzed solved my problem.

~M

On Thursday, November 22, 2012 11:57:12 AM UTC-5, Ivan Brusic wrote:

The shuttleService field is analyzed by the StandardAnalyzer, so it will
be lowercased in the index. Term queries are not analyzed, so the search
term is not lowercased. Matches are case-sensitive, so NOTINC!=notinc.

You can either index the field as not_analyzed, or use an query that
analyzes the search term such as Match.

In addition, because you are using nested documents, the field name is
pckg.shuttleService.

Cheers,

Ivan

On Thu, Nov 22, 2012 at 8:46 AM, maverick <mauricio...@gmail.com<javascript:>

wrote:

Hi guys,

I've got this so simple query that I can't make it work, I've been
wondering if some of you can give me some insights on why it does not work?
I've gisted it here

https://gist.github.com/4132033

Cheers

~M

--

--