Re: issue querying index.

2010-03-15 Thread Paulo Avelar
chindler >> > H.-H.-Meier-Allee 63, D-28213 Bremen >> > http://www.thetaphi.de >> > eMail: u...@thetaphi.de >> > >> > >> >> -Original Message- >> >> From: Paulo Avelar [mailto:phave...@gmail.com] >> >&

Re: issue querying index.

2010-03-15 Thread Erick Erickson
> - > > Uwe Schindler > > H.-H.-Meier-Allee 63, D-28213 Bremen > > http://www.thetaphi.de > > eMail: u...@thetaphi.de > > > > > >> -----Original Message- > >> From: Paulo Avelar [mailto:phave...@gmail.com] > >> Sent: Monday, March 15, 201

Re: issue querying index.

2010-03-15 Thread Paulo Avelar
mail.com] >> Sent: Monday, March 15, 2010 9:44 AM >> To: java-user@lucene.apache.org >> Subject: Re: issue querying index. >> >> I would love to, but it's a bit more complicated then that, there are >> several classes >> >> once you see the test yo

RE: issue querying index.

2010-03-15 Thread Uwe Schindler
> -Original Message- > From: Paulo Avelar [mailto:phave...@gmail.com] > Sent: Monday, March 15, 2010 9:44 AM > To: java-user@lucene.apache.org > Subject: Re: issue querying index. > > I would love to, but it's a bit more complicated then that, there are > several

Re: issue querying index.

2010-03-15 Thread Paulo Avelar
ler wrote: > Can you send us the test code? > > - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > >> -Original Message- >> From: Paulo Avelar [mailto:phave...@gmail.com] >> Sent

RE: issue querying index.

2010-03-15 Thread Uwe Schindler
rg > Subject: Re: issue querying index. > > Thanks for the answer, > > But I thought about that, and yes I did close the indexWriter before I > search. > I experimented with both calling commit and close, but yet I get same > behavior. > It's like there is a flus

Re: issue querying index.

2010-03-15 Thread Paulo Avelar
Thanks for the answer, But I thought about that, and yes I did close the indexWriter before I search. I experimented with both calling commit and close, but yet I get same behavior. It's like there is a flushing issue, not sure. On Mon, Mar 15, 2010 at 1:21 AM, Uwe Schindler wrote: > I think yo

RE: issue querying index.

2010-03-15 Thread Uwe Schindler
I think you forgot to commit your changes in IndexWriter or have not closed it before creating Searcher/IndexReader. So on the second run, the index is seen, because of the previous run, which was committed on jvm exit. If you are using NearRealtimeSearch (IndexWriter#getIndexReader), please tel