[pylucene-dev] Best ways to avoid stomping on existing indexes?

Nick Arnett narnett at liveworld.com
Fri Feb 11 07:20:48 PST 2005


Andi Vajda wrote:

>
> The JavaDoc for FSDirectory.getDirectory() is pretty clear about this:
> http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/store/FSDirectory.html#getDirectory(java.lang.String,%20boolean) 
>
>
> The files, if they exist, get erased, when create is True. 

Right, I understood that.  I was asking about strategies for managing 
this, given that the same code that would create the table, if run a 
second time, will wipe out the old index without any warning.

If it isn't clear already, I have very little experience with Java.  I'm 
a Python fish in a sea of Java coders, however... ;-)

Nick




More information about the pylucene-dev mailing list