lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <noble.p...@gmail.com>
Subject Re: Creation of index for the first time
Date Wed, 11 Feb 2009 17:07:55 GMT
is it reasonable to assume that the generation of a commit point is
always '1' when an empty index is opened?

On Wed, Feb 11, 2009 at 9:54 PM, Michael McCandless
<lucene@mikemccandless.com> wrote:
>
> If you create IndexWriter with create=true in a directory that has no Lucene
> index, segments_1 is created.
>
> If you do the same, but in a directory that already has a Lucene index,
> segments_(N+1) is created (where N was the last generation of the current
> index in that directory).
>
> But... this is an internal detail to Lucene's index format and could change
> in some future release.
>
> Mike
>
> Akshay wrote:
>
>> Hi List,
>>
>> How to find if an empty lucene index has been created for the very first
>> time? Is the generation number 1 enough to determine this?
>>
>> --
>> Regards,
>> Akshay K. Ukey.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>



-- 
--Noble Paul

---------------------------------------------------------------------
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