Author: nzamosenchuk
Date: 2011-08-16 06:31:43 -0400 (Tue, 16 Aug 2011)
New Revision: 4757
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/spell/LuceneSpellChecker.java
Log:
EXOJCR-1437 : Fixed directory naming for lucene spell checker.
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/spell/LuceneSpellChecker.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/spell/LuceneSpellChecker.java 2011-08-16
09:32:55 UTC (rev 4756)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/spell/LuceneSpellChecker.java 2011-08-16
10:31:43 UTC (rev 4757)
@@ -57,7 +57,7 @@
* Logger instance for this class.
*/
private static final Log log =
ExoLogger.getLogger("exo.jcr.component.core.LuceneSpellChecker");
-
+
public static final class FiveSecondsRefreshInterval extends LuceneSpellChecker
{
public FiveSecondsRefreshInterval()
@@ -253,13 +253,12 @@
InternalSpellChecker(final SearchIndex handler, float minDistance, boolean
morePopular) throws IOException
{
this.handler = handler;
- final String path = handler.getContext().getIndexDirectory() +
File.separatorChar + "spellchecker";
spellIndexDirectory = null;
SecurityHelper.doPrivilegedIOExceptionAction(new
PrivilegedExceptionAction<Object>()
{
public Object run() throws Exception
{
- spellIndexDirectory = handler.getDirectoryManager().getDirectory(path);
+ spellIndexDirectory =
handler.getDirectoryManager().getDirectory("spellchecker");
if (IndexReader.indexExists(spellIndexDirectory))
{
Show replies by date