[ https://issues.apache.org/jira/browse/LUCENE-2468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-2468: --------------------------------------- Attachment: LUCENE-2468.patch OK, I attached another go at this. I added a DeletesMode enum to CachingWrapperFilter: IGNORE (default) means just re-use the cache entry when the reader is reopened w/ new deletions; RECACHE (fully recreate the cache entry); DYNAMIC (re-use the cache entry, but use FilteredDocIdSet to dynamically re-filter it against the current deletions). I did the same for CachingSpanFilter, but I don't allow DYNAMIC for that one -- I punted on it because it's kinda hairy (I'd have to copy the List<PositionInfo> and remove entries corresponding to deleted docs). IGNORE and RECACHE are allowed. > reopen on NRT reader should share readers w/ unchanged segments > --------------------------------------------------------------- > > Key: LUCENE-2468 > URL: https://issues.apache.org/jira/browse/LUCENE-2468 > Project: Lucene - Java > Issue Type: Bug > Reporter: Yonik Seeley > Assignee: Michael McCandless > Attachments: CacheTest.java, DeletionAwareConstantScoreQuery.java, > LUCENE-2468.patch, LUCENE-2468.patch, LUCENE-2468.patch > > > A repoen on an NRT reader doesn't seem to share readers for those segments > that are unchanged. > http://search.lucidimagination.com/search/document/9f0335d480d2e637/nrt_and_caching_based_on_indexreader -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org