ka);
analyzer.addAnalyzer(FIELD_CONTENT, contentAnalyser);
indexWriter = new IndexWriter(directory, analyzer, true,
MaxFieldLength.UNLIMITED);
indexReader = IndexReader.open(directory);
indexSearcher = new IndexSearcher(indexReader);
Any thoughts?
brand new
indexSearcher from the FSDirectory and that searcher worked excellent.
Not sure why reopen and creating a new searcher wouldn't work, but I'll
look into it a little more and hopefully be able to figure something out.
Thanks!
balasubramanian sudaakeran wrote:
Hi Eric LeVin,
Apparently it was because I needed to actually look at the method
signature a bit closer :) not reassigning my indexReader instance would
mean I was always using the first instance created which wouldn't have
the documents in them. Thanks again for your help!
-Eric LeVin
balasubram