Re: Bug in v3.3.0? - IndexNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@

2011-07-07 Thread Rob Bygrave
oes not yet exist I need to add the > > writer.commit() and I believe that creates the segments. If I don't add > the > > writer.commit() then I get the IndexNotFoundException: no segments* file > > found exception below. > > > > > >IndexWriterC

Re: Bug in v3.3.0? - IndexNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@

2011-07-07 Thread Robert Muir
below works in 3.0.1 without calling the writer.commit() before >  IndexReader.open(directory). > > In v3.3.0 when the index does not yet exist I need to add the > writer.commit() and I believe that creates the segments. If I don't add the > writer.commit() then I get the IndexNo

Bug in v3.3.0? - IndexNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@

2011-07-07 Thread Rob Bygrave
hen I get the IndexNotFoundException: no segments* file found exception below. IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_33, analyzer); config.setOpenMode(OpenMode.CREATE_OR_APPEND); config.setIndexDeletionPolicy(commitDeletionP

Re: IndexNotFoundException

2011-06-06 Thread Ben Hood
Ian, Thanks a lot for the heads up. I didn't even know those detailed release notes existed - I just looked on the main release page and searched a bit through JIRA. Cheers, Ben On Mon, Jun 6, 2011 at 2:57 PM, Ian Lea wrote: > In the release notes for 3.1.0 under Changes in backwards > compati

Re: IndexNotFoundException

2011-06-06 Thread Ian Lea
In the release notes for 3.1.0 under Changes in backwards compatibility policy it says LUCENE-2386: IndexWriter no longer performs an empty commit upon new index creation. Previously, if you passed an empty Directory and set OpenMode to CREATE*, IndexWriter would make a first empty commit. If you

Re: IndexNotFoundException

2011-06-06 Thread Ben Hood
For note, this code works with 3.0.3: package net.lshift.diffa.kernel.util; import com.eaio.uuid.UUID; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.store.FSDirectory

IndexNotFoundException

2011-06-06 Thread Ben Hood
Hi, I'm trying to upgrade from 3.0.2 to 3.2.0 and am running into the following issue when trying to boot an IndexSearcher: Exception in thread "main" org.apache.lucene.index.IndexNotFoundException: no segments* file found in org.apache.lucene.store.NIOFSDirectory@/tmp/804f7160-9023-11e0-9123-00