Author: nzamosenchuk
Date: 2010-06-02 05:19:44 -0400 (Wed, 02 Jun 2010)
New Revision: 2449
Modified:
jcr/branches/1.12-LIC-709/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/SingleIndex.java
Log:
EXOJCR-684: enabling NRT, removing writer.commit().
Modified:
jcr/branches/1.12-LIC-709/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/SingleIndex.java
===================================================================
---
jcr/branches/1.12-LIC-709/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/SingleIndex.java 2010-06-02
06:53:05 UTC (rev 2448)
+++
jcr/branches/1.12-LIC-709/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/SingleIndex.java 2010-06-02
09:19:44 UTC (rev 2449)
@@ -141,7 +141,7 @@
writer.addDocument(doc);
}
}
- writer.commit();
+ //writer.commit();
}
/**
@@ -155,7 +155,7 @@
if (!reader.isCurrent())
{
IndexReader oldReader = reader;
- reader = reader.reopen();
+ reader = writer.getReader(); //reader.reopen();
if (reader != oldReader)
{
oldReader.close();
Show replies by date