Re: Lucene fields not analyzed

2010-02-09 Thread Rohit Banga
- >> Uwe Schindler >> H.-H.-Meier-Allee 63, D-28213 Bremen >> http://www.thetaphi.de >> eMail: u...@thetaphi.de >> >> >> > -Original Message- >> > From: Rohit Banga [mailto:iamrohitba...@gmail.com] >> > Sent: Tuesday, February 09, 2

Re: Lucene fields not analyzed

2010-02-09 Thread Rohit Banga
aphi.de > eMail: u...@thetaphi.de > > > > -Original Message- > > From: Rohit Banga [mailto:iamrohitba...@gmail.com] > > Sent: Tuesday, February 09, 2010 9:03 AM > > To: java-user@lucene.apache.org > > Subject: Re: Lucene fields not analyzed > > > >

RE: Lucene fields not analyzed

2010-02-09 Thread Uwe Schindler
.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Rohit Banga [mailto:iamrohitba...@gmail.com] > Sent: Tuesday, February 09, 2010 9:03 AM > To: java-user@lucene.apache.org > Subject: Re: Lucene fields not ana

Re: Lucene fields not analyzed

2010-02-09 Thread Mark Harwood
Use Luke. It can show you the index contents and your parsed query and should show what is breaking down here. On 9 Feb 2010, at 08:03, Rohit Banga wrote: > let us assume this is the only field that is relevant (others are stored and > not indexed). > i tried termquery and it does not work. > i

Re: Lucene fields not analyzed

2010-02-09 Thread Rohit Banga
let us assume this is the only field that is relevant (others are stored and not indexed). i tried termquery and it does not work. i also tried keyword analyzer and still could not make it work. @Mark i cannot escape the spaces in my query as i am using Lucene to identify occurences of names among

Re: Lucene fields not analyzed

2010-02-08 Thread Mark Harwood
I suspect it is because QueryParser uses space characters to separate different clauses in a query string while you want the space to represent some content in your "name" field. Try escaping the space character. Cheers Mark On 9 Feb 2010, at 07:26, Rohit Banga wrote: > Hello > > i have a f

RE: Lucene fields not analyzed

2010-02-08 Thread Uwe Schindler
.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Rohit Banga [mailto:iamrohitba...@gmail.com] > Sent: Tuesday, February 09, 2010 8:27 AM > To: java-user@lucene.apache.org > Subject: Lucene fields not analyzed > &

Lucene fields not analyzed

2010-02-08 Thread Rohit Banga
Hello i have a field that stores names of people. i have used the NOT_ANALYZED parameter to index the names. this is what happens during indexing doc.add(new Field("name", "\"" + name + "\"", Field.Store.YES, Field.Index.NOT_ANALYZED)); when i search it, i create a query parser using stan