Problems searching index

2009-05-18 Thread Eric LeVin
ka); analyzer.addAnalyzer(FIELD_CONTENT, contentAnalyser); indexWriter = new IndexWriter(directory, analyzer, true, MaxFieldLength.UNLIMITED); indexReader = IndexReader.open(directory); indexSearcher = new IndexSearcher(indexReader); Any thoughts?

Re: Problems searching index

2009-05-18 Thread Eric LeVin
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,

Re: Problems searching index

2009-05-18 Thread 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