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: Creation of index for the first time
Date Wed, 11 Feb 2009 17:13:34 GMT

Noble Paul നോബിള്‍ नोब्ळ् wrote:

> is it reasonable to assume that the generation of a commit point is
> always '1' when an empty index is opened?

It depends what "empty index" means.

EG I can make a new index, add docs, do lots of commits, etc., then
open a new IndexWriter with create=true on that same Directory.  At
that point I have an "empty index" (no docs), but its generation is > 1.

Or if by empty index you mean zero files in the Directory, then when
I make an IndexWriter w/ create=true and immediately close it, then
generation will always be 1.

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