Re: Keyword analyzer will turn query to lowercase

2016-09-22 Thread Cam Bazz
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

Re: Keyword Analyzer

2011-02-18 Thread Ian Lea
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

Re: Keyword Analyzer

2011-02-18 Thread Ganesh
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

Re: Keyword Analyzer

2011-02-18 Thread Ian Lea
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