Thanks Uwe. I'll work towards the CachingWrapperFilter. Antony
On 27/04/2011 9:33 PM, Uwe Schindler wrote:
Hi, In Lucene trunk the Filter gets a ReaderContext which contain a doc base if available. For Lucene 2 and 3 this is not available. The Lucene 2.9 code did not change documented behavior. The fact that Filters always got the top level reader was never documented (it was just like that in early Lucene versions) and so is no break. The same applies not only to filters, it also applies to Scorers created by Queries. Those also don't know anything about the top-level searcher (and they don't need). For a filter to work this is also not an requirement - the IndexReader passed as parameter is self contained and provides all information for processing the current segment). You should simply fix your caching (which is much more effective after this change, as the cache items don't get invalid after a reopen of an index where only few segments changed). I would suggest to correct your code and use CachingWrapperFilter. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
