RE: analizer not doing the same thing at index and query time?

2011-07-12 Thread Uwe Schindler
phi.de eMail: u...@thetaphi.de > -Original Message- > From: jm [mailto:jmugur...@gmail.com] > Sent: Tuesday, July 12, 2011 2:52 PM > To: java-user@lucene.apache.org > Subject: Re: analizer not doing the same thing at index and query time? > > *Here is a self contained cod

Re: analizer not doing the same thing at index and query time?

2011-07-12 Thread jm
*Here is a self contained code: * * * * I verified with luke no 's' is indexed in the index. The output I get is: testChars :(bloom's*) got 0 Query is: :bloom's* :(bloom) got 1 Query is: :bloom :(bloom AND b*) got 1 Query is: +:bloom +:b* So what I don't understand why

Re: analizer not doing the same thing at index and query time?

2011-07-12 Thread jm
*But I think I am! I build the QueryParser with the same analyzer I used at index time... * * * *Anyway, I'll try to build a self contained example independent of my app code. * On Tue, Jul 12, 2011 at 1:01 PM, Ian Lea wrote: > If I've read your example correctly it appears that at indexing your

Re: analizer not doing the same thing at index and query time?

2011-07-12 Thread Ian Lea
If I've read your example correctly it appears that at indexing your analyzer is converting "bloom's" to "bloom" but not at search time. Which implies that you aren't using the same analyzer in both cases. -- Ian. On Mon, Jul 11, 2011 at 4:19 PM, jm wrote: > *Hi,* > * > * > *My env is jdk1.6 a