private void setParam(String name, String value)
   {
      if (QueryHandlerParams.PARAM_AUTO_REPAIR.equals(name))
      {
         searchIndex.setAutoRepair(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_BUFFER_SIZE.equals(name))
      {
         searchIndex.setBufferSize(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_CACHE_SIZE.equals(name))
      {
         searchIndex.setCacheSize(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_CONSISTENCY_CHECK_ENABLED.equals(name))
      {
         searchIndex.setEnableConsistencyCheck(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_DOCUMENT_ORDER.equals(name))
      {
         searchIndex.setRespectDocumentOrder(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_EXCERPTPROVIDER_CLASS.equals(name))
      {
         searchIndex.setExcerptProviderClass(value);
      }
      else if (QueryHandlerParams.PARAM_EXTRACTOR_BACKLOG.equals(name))
      {
         searchIndex.setExtractorBackLogSize(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_EXTRACTOR_POOLSIZE.equals(name))
      {
         searchIndex.setExtractorPoolSize(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_EXTRACTOR_TIMEOUT.equals(name))
      {
         searchIndex.setExtractorTimeout(StringNumberParser.parseLong(value));
      }
      else if (QueryHandlerParams.PARAM_FORCE_CONSISTENCYCHECK.equals(name))
      {
         searchIndex.setForceConsistencyCheck(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_ERRORLOG_SIZE.equals(name))
      {
         searchIndex.setErrorLogfileSize(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_INDEXING_CONFIGURATION_PATH.equals(name))
      {
         searchIndex.setIndexingConfiguration(value);
      }
      else if (QueryHandlerParams.PARAM_INDEXING_CONFIGURATION_CLASS.equals(name))
      {
         searchIndex.setIndexingConfigurationClass(value);
      }
      else if (QueryHandlerParams.PARAM_MAX_FIELD_LENGTH.equals(name))
      {
         searchIndex.setMaxFieldLength(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_MAX_MERGE_DOCS.equals(name))
      {
         searchIndex.setMaxMergeDocs(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_MERGE_FACTOR.equals(name))
      {
         searchIndex.setMergeFactor(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_MIN_MERGE_DOCS.equals(name))
      {
         searchIndex.setMinMergeDocs(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_QUERY_CLASS.equals(name))
      {
         searchIndex.setQueryClass(value);
      }
      else if (QueryHandlerParams.PARAM_RESULT_FETCH_SIZE.equals(name))
      {
         searchIndex.setResultFetchSize(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_SPELLCHECKER_CLASS.equals(name))
      {
         searchIndex.setSpellCheckerClass(value);
      }
      else if (QueryHandlerParams.PARAM_SUPPORT_HIGHLIGHTING.equals(name))
      {
         searchIndex.setSupportHighlighting(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_SYNONYMPROVIDER_CLASS.equals(name))
      {
         searchIndex.setSynonymProviderClass(value);
      }
      else if (QueryHandlerParams.PARAM_SYNONYMPROVIDER_CONFIG_PATH.equals(name))
      {
         searchIndex.setSynonymProviderConfigPath(value);
      }
      else if (QueryHandlerParams.PARAM_USE_COMPOUNDFILE.equals(name))
      {
         searchIndex.setUseCompoundFile(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_VOLATILE_IDLE_TIME.equals(name))
      {
         searchIndex.setVolatileIdleTime(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_MAX_VOLATILE_SIZE.equals(name))
      {
         searchIndex.setMaxVolatileIndexSize(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_MAX_VOLATILE_TIME.equals(name))
      {
         searchIndex.setMaxVolatileTime(StringNumberParser.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_ANALYZER_CLASS.equals(name))
      {
         searchIndex.setAnalyzer(value);
      }
      else if (QueryHandlerParams.PARAM_SPELLCHECKER_MORE_POPULAR.equals(name))
      {
         searchIndex.setSpellCheckerMorePopuar(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_SPELLCHECKER_DISTANCE.equals(name))
      {
         searchIndex.setSpellCheckerMinDistance(StringNumberParser.parseNumber(value).floatValue());
      }
      else if (QueryHandlerParams.PARAM_REINDEXING_PAGE_SIZE.equals(name))
      {
         searchIndex.setReindexingPageSize(StringNumberParser.parseNumber(value).intValue());
      }
      else if (QueryHandlerParams.PARAM_RDBMS_REINDEXING.equals(name))
      {
         searchIndex.setRDBMSReindexing(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_INDEX_RECOVERY_MODE.equals(name))
      {
         searchIndex.setIndexRecoveryMode(value);
      }
      else if (QueryHandlerParams.PARAM_INDEX_RECOVERY_STRATEGY.equals(name))
      {
         searchIndex.setIndexRecoveryStrategy(value);
      }
      else if (QueryHandlerParams.PARAM_ASYNC_REINDEXING.equals(name))
      {
         searchIndex.setAsyncReindexing(Boolean.parseBoolean(value));
      }
      else if (QueryHandlerParams.PARAM_INDEX_RECOVERY_FILTER.equals(name))
      {
         searchIndex.addRecoveryFilterClass(value);
      }
      else if (QueryHandlerParams.PARAM_INDEXING_THREAD_POOL_SIZE.equals(name))
      {
         searchIndex.setIndexingThreadPoolSize(Integer.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_INDEXING_LOAD_BATCHING_THRESHOLD_DYNAMIC.equals(name))
      {
         searchIndex.setIndexingLoadBatchingThresholdDynamic(Boolean.valueOf(value));
      }
      else if (QueryHandlerParams.PARAM_INDEXING_LOAD_BATCHING_THRESHOLD_TTL.equals(name))
      {
         searchIndex.setIndexingLoadBatchingThresholdTTL(StringNumberParser.parseTime(value));
      }
      else if (QueryHandlerParams.PARAM_INDEXING_LOAD_BATCHING_THRESHOLD_PROPERTY.equals(name))
      {
         searchIndex.setIndexingLoadBatchingThresholdProperty(Integer.parseInt(value));
      }
      else if (QueryHandlerParams.PARAM_INDEXING_LOAD_BATCHING_THRESHOLD_NODE.equals(name))
      {
         searchIndex.setIndexingLoadBatchingThresholdNode(Integer.parseInt(value));
      }
      else
      {
         searchIndex.addOptionalParameter(name, value);
      }
   }
private void setParam ( String name , String value ) { if ( QueryHandlerParams . PARAM_AUTO_REPAIR . equals ( name ) ) { searchIndex . setAutoRepair ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_BUFFER_SIZE . equals ( name ) ) { searchIndex . setBufferSize ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_CACHE_SIZE . equals ( name ) ) { searchIndex . setCacheSize ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_CONSISTENCY_CHECK_ENABLED . equals ( name ) ) { searchIndex . setEnableConsistencyCheck ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_DOCUMENT_ORDER . equals ( name ) ) { searchIndex . setRespectDocumentOrder ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_EXCERPTPROVIDER_CLASS . equals ( name ) ) { searchIndex . setExcerptProviderClass ( value ) ; } else if ( QueryHandlerParams . PARAM_EXTRACTOR_BACKLOG . equals ( name ) ) { searchIndex . setExtractorBackLogSize ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_EXTRACTOR_POOLSIZE . equals ( name ) ) { searchIndex . setExtractorPoolSize ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_EXTRACTOR_TIMEOUT . equals ( name ) ) { searchIndex . setExtractorTimeout ( StringNumberParser . parseLong ( value ) ) ; } else if ( QueryHandlerParams . PARAM_FORCE_CONSISTENCYCHECK . equals ( name ) ) { searchIndex . setForceConsistencyCheck ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_ERRORLOG_SIZE . equals ( name ) ) { searchIndex . setErrorLogfileSize ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_INDEXING_CONFIGURATION_PATH . equals ( name ) ) { searchIndex . setIndexingConfiguration ( value ) ; } else if ( QueryHandlerParams . PARAM_INDEXING_CONFIGURATION_CLASS . equals ( name ) ) { searchIndex . setIndexingConfigurationClass ( value ) ; } else if ( QueryHandlerParams . PARAM_MAX_FIELD_LENGTH . equals ( name ) ) { searchIndex . setMaxFieldLength ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_MAX_MERGE_DOCS . equals ( name ) ) { searchIndex . setMaxMergeDocs ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_MERGE_FACTOR . equals ( name ) ) { searchIndex . setMergeFactor ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_MIN_MERGE_DOCS . equals ( name ) ) { searchIndex . setMinMergeDocs ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_QUERY_CLASS . equals ( name ) ) { searchIndex . setQueryClass ( value ) ; } else if ( QueryHandlerParams . PARAM_RESULT_FETCH_SIZE . equals ( name ) ) { searchIndex . setResultFetchSize ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_SPELLCHECKER_CLASS . equals ( name ) ) { searchIndex . setSpellCheckerClass ( value ) ; } else if ( QueryHandlerParams . PARAM_SUPPORT_HIGHLIGHTING . equals ( name ) ) { searchIndex . setSupportHighlighting ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_SYNONYMPROVIDER_CLASS . equals ( name ) ) { searchIndex . setSynonymProviderClass ( value ) ; } else if ( QueryHandlerParams . PARAM_SYNONYMPROVIDER_CONFIG_PATH . equals ( name ) ) { searchIndex . setSynonymProviderConfigPath ( value ) ; } else if ( QueryHandlerParams . PARAM_USE_COMPOUNDFILE . equals ( name ) ) { searchIndex . setUseCompoundFile ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_VOLATILE_IDLE_TIME . equals ( name ) ) { searchIndex . setVolatileIdleTime ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_MAX_VOLATILE_SIZE . equals ( name ) ) { searchIndex . setMaxVolatileIndexSize ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_MAX_VOLATILE_TIME . equals ( name ) ) { searchIndex . setMaxVolatileTime ( StringNumberParser . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_ANALYZER_CLASS . equals ( name ) ) { searchIndex . setAnalyzer ( value ) ; } else if ( QueryHandlerParams . PARAM_SPELLCHECKER_MORE_POPULAR . equals ( name ) ) { searchIndex . setSpellCheckerMorePopuar ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_SPELLCHECKER_DISTANCE . equals ( name ) ) { searchIndex . setSpellCheckerMinDistance ( StringNumberParser . parseNumber ( value ) . floatValue ( ) ) ; } else if ( QueryHandlerParams . PARAM_REINDEXING_PAGE_SIZE . equals ( name ) ) { searchIndex . setReindexingPageSize ( StringNumberParser . parseNumber ( value ) . intValue ( ) ) ; } else if ( QueryHandlerParams . PARAM_RDBMS_REINDEXING . equals ( name ) ) { searchIndex . setRDBMSReindexing ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_INDEX_RECOVERY_MODE . equals ( name ) ) { searchIndex . setIndexRecoveryMode ( value ) ; } else if ( QueryHandlerParams . PARAM_INDEX_RECOVERY_STRATEGY . equals ( name ) ) { searchIndex . setIndexRecoveryStrategy ( value ) ; } else if ( QueryHandlerParams . PARAM_ASYNC_REINDEXING . equals ( name ) ) { searchIndex . setAsyncReindexing ( Boolean . parseBoolean ( value ) ) ; } else if ( QueryHandlerParams . PARAM_INDEX_RECOVERY_FILTER . equals ( name ) ) { searchIndex . addRecoveryFilterClass ( value ) ; } else if ( QueryHandlerParams . PARAM_INDEXING_THREAD_POOL_SIZE . equals ( name ) ) { searchIndex . setIndexingThreadPoolSize ( Integer . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_INDEXING_LOAD_BATCHING_THRESHOLD_DYNAMIC . equals ( name ) ) { searchIndex . setIndexingLoadBatchingThresholdDynamic ( Boolean . valueOf ( value ) ) ; } else if ( QueryHandlerParams . PARAM_INDEXING_LOAD_BATCHING_THRESHOLD_TTL . equals ( name ) ) { searchIndex . setIndexingLoadBatchingThresholdTTL ( StringNumberParser . parseTime ( value ) ) ; } else if ( QueryHandlerParams . PARAM_INDEXING_LOAD_BATCHING_THRESHOLD_PROPERTY . equals ( name ) ) { searchIndex . setIndexingLoadBatchingThresholdProperty ( Integer . parseInt ( value ) ) ; } else if ( QueryHandlerParams . PARAM_INDEXING_LOAD_BATCHING_THRESHOLD_NODE . equals ( name ) ) { searchIndex . setIndexingLoadBatchingThresholdNode ( Integer . parseInt ( value ) ) ; } else { searchIndex . addOptionalParameter ( name , value ) ; } }
@param name
@param value