[pylucene-dev] Best ways to avoid stomping on existing indexes?
Nick Arnett
narnett at liveworld.com
Thu Feb 10 14:23:30 PST 2005
Having wiped out my indexes several times while getting familiar with PyLucene, I'm wondering what
strategies others are using to avoid this.
I was thinking of using a try/except that tries to write to the index I want to use, and create the
index if it throws an error. However, it doesn't seem to throw a Python exception, at least on
Windows. It exits with a MSVC++ runtime error, which I'm guessing I can't catch.
I guess I'm just going to write a module whose entire purpose is to create indexes... But I'd like
to hear suggestions.
Nick
More information about the pylucene-dev
mailing list