lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: IndexDeletionPolicy and IndexCommitPoint
Date Sat, 07 Jun 2008 19:21:54 GMT

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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message