Re: ReaderCommit

2008-06-25 Thread Michael McCandless
Jason Rutherglen wrote: For Ocean I created a workaround where the IndexCommits from IndexDeletionPolicy are saved in a map in order to achieve deleting based on the IndexReader. It would be more straightforward to delete from the IndexCommit in IndexReader. It seems like we are mixing

Re: ReaderCommit

2008-06-22 Thread Jason Rutherglen
McCandless < [EMAIL PROTECTED]> wrote: > > Jason Rutherglen wrote: > > Is there a reason ReaderCommit in DirectoryIndexReader.getIndexCommit() >> does not support delete? >> > > I think we are getting away from using IndexReader to make changes to the > index, so, I

Re: ReaderCommit

2008-06-22 Thread Michael McCandless
Jason Rutherglen wrote: Is there a reason ReaderCommit in DirectoryIndexReader.getIndexCommit() does not support delete? I think we are getting away from using IndexReader to make changes to the index, so, I didn't want to enable deleting a commit point from IndexReader. Is is p

ReaderCommit

2008-06-22 Thread Jason Rutherglen
Is there a reason ReaderCommit in DirectoryIndexReader.getIndexCommit() does not support delete? Is is proper behavior to use SnapshotDeletionPolicy and then keep the IndexCommit around? What is the difference where the former does not support delete?