lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Creating initial index using FSDirectory
Date Thu, 22 Jun 2006 00:06:59 GMT
>From an e-mail from Kent Fitch in the thread "*Detecting index existance* "

Try IndexReader static method indexExists:
http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#indexExists(java.lang.String)<http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#indexExists%28java.lang.String%29>

Can you condition how you set the rewrite (create!?) flag based upon the
return from this call?

Hope this helps
Erick

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message