I will be replying to my own question:
Looking at the source code of KeywordAnalyzer, I noticed was not
lowercasing the indexed fields, and index did not contain lowercased
letters anyway, so I thought that query parser was responsible for this.
And again looking at source code of QueryParser I f
gt;
>
> - Original Message -
> From: "Ian Lea"
> To:
> Sent: Friday, February 18, 2011 4:34 PM
> Subject: Re: Keyword Analyzer
>
>
> Presumably because without the quotes the parser is splitting it up
> into 2 terms. Why bother parsing it? Just build the
Exactly. QueryParser is splitting it in to two words.
>>Just build the query directly.
TermQuery or PhraseQuery?
Regards
Ganesh
- Original Message -
From: "Ian Lea"
To:
Sent: Friday, February 18, 2011 4:34 PM
Subject: Re: Keyword Analyzer
Presumably because wi
Presumably because without the quotes the parser is splitting it up
into 2 terms. Why bother parsing it? Just build the query directly.
--
Ian.
On Fri, Feb 18, 2011 at 10:38 AM, Ganesh wrote:
> Hello all,
>
> I am using Keyword analyzer to index a field and while using queryparser, I
> am u