lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mihai Caraman <caraman.mi...@gmail.com>
Subject Re: Taxonomy indexer debug
Date Mon, 28 Nov 2011 11:01:27 GMT
All packages used: core3.4, queries3.4, facet3.5.
Once every 3 minutes I *refreshTax* and once per day I *reopenEveryting*.

*InitWriters()*
writer = new ThreadedIndexWriter
taxWriter = new LuceneTaxonomyWriter
// because the reader can't start if doesn't have a valid taxIndex directory
taxWriter.commit();

*InitReaders()*
reader =     IndexReader.open(writer, false);
taxReader =  new LuceneTaxonomyReader

*RefreshTax()*
taxWriter.commit();
writer.commit();
reader = Singleton.reader.reopen();
taxReader.refresh();

*reopenEverything*()
reader.close();
taxReader.close();
taxWriter.close();
writer.close();
initWriters();
initReaders();

I don't think the infostream from the taxWriter would do me any good.
because the writer does he's job, he's not stopping from indexing, but the
taxReader doesn't have access to those new entries.

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