[exo-jcr-commits] exo-jcr SVN: r1480 - jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jan 19 08:03:08 EST 2010
Author: nzamosenchuk
Date: 2010-01-19 08:03:08 -0500 (Tue, 19 Jan 2010)
New Revision: 1480
Modified:
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchIndexConfigurationHelper.java
Log:
EXOJCR-419: Cleaned useless comments and added TODO for EXOJCR-419
Modified: jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchIndexConfigurationHelper.java
===================================================================
--- jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchIndexConfigurationHelper.java 2010-01-19 12:56:54 UTC (rev 1479)
+++ jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchIndexConfigurationHelper.java 2010-01-19 13:03:08 UTC (rev 1480)
@@ -27,14 +27,12 @@
import java.io.IOException;
/**
- * @author <a href="mailto:Sergey.Kabashnyuk at exoplatform.org">Sergey
- * Kabashnyuk</a>
+ * @author <a href="mailto:Sergey.Kabashnyuk at exoplatform.org">Sergey Kabashnyuk</a>
* @version $Id: SearchIndexConfigurationHelper.java 1053 2009-12-15 09:27:30Z nzamosenchuk $
*
*/
public class SearchIndexConfigurationHelper
{
-
private final SearchIndex searchIndex;
/**
@@ -55,13 +53,11 @@
*/
public void init(QueryHandlerEntry queryHandlerEntry) throws IOException, RepositoryConfigurationException
{
- // Path will be set using queryHandelContext
-
+ // TODO: support human-readable values ( https://jira.jboss.org/jira/browse/EXOJCR-419 )
for (SimpleParameterEntry parameter : queryHandlerEntry.getParameters())
{
setParam(parameter.getName(), parameter.getValue());
}
-
}
/**
@@ -83,9 +79,6 @@
searchIndex.setRespectDocumentOrder(Boolean.parseBoolean(value));
else if (QueryHandlerParams.PARAM_EXCERPTPROVIDER_CLASS.equals(name))
searchIndex.setExcerptProviderClass(value);
- // else if
- // (QueryHandlerParams.PARAM_EXCLUDED_NODE_IDENTIFERS.equals(name))
- // searchIndex.setE
else if (QueryHandlerParams.PARAM_EXTRACTOR_BACKLOG.equals(name))
searchIndex.setExtractorBackLogSize(Integer.parseInt(value));
else if (QueryHandlerParams.PARAM_EXTRACTOR_POOLSIZE.equals(name))
@@ -96,9 +89,6 @@
searchIndex.setForceConsistencyCheck(Boolean.parseBoolean(value));
else if (QueryHandlerParams.PARAM_ERRORLOG_SIZE.equals(name))
searchIndex.setErrorLogfileSize(Integer.parseInt(value));
- // else if (QueryHandlerParams.PARAM_INDEX_DIR.equals(name))
- // searchIndex.setBufferSize(0);
- // else if (OLD_PARAM_INDEX_DIR
else if (QueryHandlerParams.PARAM_INDEXING_CONFIGURATION_PATH.equals(name))
searchIndex.setIndexingConfiguration(value);
else if (QueryHandlerParams.PARAM_INDEXING_CONFIGURATION_CLASS.equals(name))
@@ -115,8 +105,6 @@
searchIndex.setQueryClass(value);
else if (QueryHandlerParams.PARAM_RESULT_FETCH_SIZE.equals(name))
searchIndex.setResultFetchSize(Integer.parseInt(value));
- // else if (QueryHandlerParams.PARAM_ROOT_NODE_ID.equals(name))
- // searchIndex.setBufferSize(0);
else if (QueryHandlerParams.PARAM_SPELLCHECKER_CLASS.equals(name))
searchIndex.setSpellCheckerClass(value);
else if (QueryHandlerParams.PARAM_SUPPORT_HIGHLIGHTING.equals(name))
@@ -137,8 +125,5 @@
{
searchIndex.setAnalyzer(value);
}
- // else if (QueryHandlerParams.PARAM_UPGRADE_INDEX.equals(name))
- // searchIndex.i
-
}
}
More information about the exo-jcr-commits
mailing list