>  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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to