Yonik Seeley wrote:
OK, does this mean it's now relatively safe/lightweight now to hold references to IndexCommit objects long term (across different IndexWriter objects on the same Directory?)
Yes, this should be fine.
I also notice that IndexCommit.equals() only compares the segment fine name... should it compare version also? If index files were deleted, and a new IndexWriter was opened, one could end up with a different index but the same segment file name.
Good point! I think we we only need to compare version (comparing filename would be redundant), and Directory.
Mike --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]