Question about FilterIndexReader and IndexSearcher

2011-06-26 Thread 周洲
Hello, I want to let IndexReader finding the modification in time,so i use MyFilterIndexReader which extend FilterIndexReader to cache the deleted document in RAM.when this FilterIndexReader be the argument of a IndexSearcher,i found that this IndexSearcher can not filter the deleted document,

Re: field sorted searches with unbounded hit count

2011-06-26 Thread Michael McCandless
On Fri, Jun 24, 2011 at 2:14 PM, Tim Eck wrote: > I'm currently using the "real-time" readers from IndexWriter.getReader() and > never closing my IndexWriter. I was (perhaps wrongly) assuming that those > readers can observe mutations that have occurred after creating them. Actually, the NRT r

RE: Question about FilterIndexReader and IndexSearcher

2011-06-26 Thread Uwe Schindler
Hi, usage of FilterIndexReader is not always as easy as it seems. There are several problem, that can easy lead to the fact that you FilterIndexReader implements all document filtering, but IndexSearcher does not respect it. I have no idea what you are doing, but the following thing need to be don