Re: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-18 Thread Erick Erickson
gards, > Raghu > > > -Original Message- > From: Rao, Raghavendra: IT (NYK) > Sent: Sunday, November 17, 2013 12:54 PM > To: java-user@lucene.apache.org > Subject: RE: WhitespaceAnalyzer vs StandardAnalyzer > > The solution clicked to me as soon as I sent the e

RE: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-17 Thread raghavendra.k.rao
:54 PM To: java-user@lucene.apache.org Subject: RE: WhitespaceAnalyzer vs StandardAnalyzer The solution clicked to me as soon as I sent the email :) The problem was that I was enclosing the search text with double quotes (for PhraseQuery) before providing it to QueryParser and it was getting messed up

RE: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-17 Thread raghavendra.k.rao
tSearchString.toUpperCase()) + "\""); Regards, Raghu -Original Message- From: Rao, Raghavendra: IT (NYK) Sent: Sunday, November 17, 2013 12:36 PM To: java-user@lucene.apache.org Subject: RE: WhitespaceAnalyzer vs StandardAnalyzer Thank you very much, Eric. WhitespaceAnalyzer

RE: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-17 Thread raghavendra.k.rao
om: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Friday, November 15, 2013 4:45 PM To: java-user Subject: Re: WhitespaceAnalyzer vs StandardAnalyzer Well, your example will work exactly as you want. And if your input is strictly controlled, that's fine. But if you're putting in

Re: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-17 Thread VIGNESH S
Hi, whitespace analyzer would be ideal for your requirement. On Sat, Nov 16, 2013 at 1:51 AM, wrote: > Hi, > > I implemented my Lucene solution using StandardAnalyzer for both indexing > and searching. While testing, I noticed that special characters such as > hyphens, forward slash etc. are o

Re: WhitespaceAnalyzer vs StandardAnalyzer

2013-11-15 Thread Erick Erickson
Well, your example will work exactly as you want. And if your input is strictly controlled, that's fine. But if you're putting in text, for instance, punctuation will be part of the token. I.e. in the sentence just before this one, "token" would not be found, but "token." would. The admin/analysi

WhitespaceAnalyzer vs StandardAnalyzer

2013-11-15 Thread raghavendra.k.rao
Hi, I implemented my Lucene solution using StandardAnalyzer for both indexing and searching. While testing, I noticed that special characters such as hyphens, forward slash etc. are omitted by this Analyzer. In plain English, the requirement is to search for individual words, in Lucene terms S