Author: nzamosenchuk
Date: 2009-12-15 04:27:30 -0500 (Tue, 15 Dec 2009)
New Revision: 1053
Modified:
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/config/QueryHandlerParams.java
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchIndexConfigurationHelper.java
Log:
EXOJCR-291: Added parameter "max-volatile-size" to QueryHandler configuration
Modified:
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/config/QueryHandlerParams.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/config/QueryHandlerParams.java 2009-12-15
08:37:26 UTC (rev 1052)
+++
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/config/QueryHandlerParams.java 2009-12-15
09:27:30 UTC (rev 1053)
@@ -92,6 +92,8 @@
public static final String PARAM_USE_COMPOUNDFILE = "use-compoundfile";
public static final String PARAM_VOLATILE_IDLE_TIME = "volatile-idle-time";
+
+ public static final String PARAM_MAX_VOLATILE_SIZE = "max-volatile-size";
//since
https://jira.jboss.org/jira/browse/EXOJCR-17
Modified:
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchIndexConfigurationHelper.java
===================================================================
---
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchIndexConfigurationHelper.java 2009-12-15
08:37:26 UTC (rev 1052)
+++
jcr/branches/1.12.0-JBC/component/core/src/main/java/org/exoplatform/services/jcr/impl/core/query/SearchIndexConfigurationHelper.java 2009-12-15
09:27:30 UTC (rev 1053)
@@ -129,6 +129,8 @@
searchIndex.setUseCompoundFile(Boolean.parseBoolean(value));
else if (QueryHandlerParams.PARAM_VOLATILE_IDLE_TIME.equals(name))
searchIndex.setVolatileIdleTime(Integer.parseInt(value));
+ else if (QueryHandlerParams.PARAM_MAX_VOLATILE_SIZE.equals(name))
+ searchIndex.setMaxVolatileIndexSize(Integer.parseInt(value));
else if (QueryHandlerParams.PARAM_ANALYZER_CLASS.equals(name))
{
searchIndex.setAnalyzer(value);