lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-christian.ga...@prasahewitt.ch
Subject Re: existing or not existing
Date Wed, 05 Dec 2001 06:45:11 GMT






>  This is what I do, but frankly it's a little scary.
>
>  Basically, if your open fails for some other reason, it
>blows away your index.
>
>
>  I think it would make sense to follow the "standard"
>of, if that flag is true, to make the index if needed and
>use it if it exists.
>
>  To simply clear the index completely should be another
>mechanism that the user would call if they really wanted
>to overwrite an index with a new one.


I agree with you.

To make sure that I don't overwrite an existing index just because the open
failed, I won't rely on the exception but rather
check for the presence of the segment file, as suggested in another reply.

JCG



--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message