The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

paulocsc (7) [Avatar] Offline
#1
At "2.8 Near real-time search" you wrote:

"Fortunately, Lucene now makes this simple, by providing this method in IndexWriter:
IndexReader getReader()"

but a could not find this method, in Lucene 3, in class IndexWriter or in a object indexWriter.getReader().

Thanks,
Paulo C├ęsar
mike.mccandless (221) [Avatar] Offline
#2
Re: IndexReader getReader() - Is it a mistake?
That method is definitely in Lucene 3.0 (and also 2.9). Are you sure you're using the right Lucene JAR?

Mike
paulocsc (7) [Avatar] Offline
#3
Re: IndexReader getReader() - Is it a mistake?
You are right!
It was my mistake. I had a problem in my Eclipse project.
Thanks Mike.

Paulo