search/engine/impl-lucene/src/main/java/net/sf/mmm/search/engine/impl/lucene/LuceneSearchEngineBuilder.java
/**
   * This method creates a {@link ManagedSearchEngine} for an existing {@link IndexReader}.
   *
   * @param indexReader is the {@link IndexReader}.
   * @param configurationHolder is the {@link SearchConfigurationHolder}.
   * @param refresher is the {@link PeriodicRefresher} or <code>null</code> to disable auto-refresh.
   * @return the {@link ManagedSearchEngine}.
   */
This method creates a  ManagedSearchEngine for an existing  IndexReader.
@param indexReader is the  IndexReader.
@param configurationHolder is the  SearchConfigurationHolder.
@param refresher is the  PeriodicRefresher or null to disable auto-refresh.
This method creates a ManagedSearchEngine for an existing IndexReader . @param indexReader is the IndexReader . @param configurationHolder is the SearchConfigurationHolder . @param refresher is the PeriodicRefresher or null to disable auto - refresh .
public ManagedSearchEngine createSearchEngine(IndexReader indexReader,
      SearchConfigurationHolder<? extends SearchConfiguration> configurationHolder, PeriodicRefresher refresher) {
    LuceneFieldManager fieldManager = this.fieldManagerFactory.createFieldManager(configurationHolder);
    LuceneSearchEngine engine = new LuceneSearchEngine(indexReader, this.analyzer,
        getSearchQueryBuilderFactory().createQueryBuilder(configurationHolder), this.highlightFormatter, fieldManager,
        getSearchDependencies(), refresher);
    engine.initialize();
    return engine;
  }
public ManagedSearchEngine createSearchEngine ( IndexReader indexReader , SearchConfigurationHolder < ? extends SearchConfiguration > configurationHolder , PeriodicRefresher refresher ) { LuceneFieldManager fieldManager = this . fieldManagerFactory . createFieldManager ( configurationHolder ) ; LuceneSearchEngine engine = new LuceneSearchEngine ( indexReader , this . analyzer , getSearchQueryBuilderFactory ( ) . createQueryBuilder ( configurationHolder ) , this . highlightFormatter , fieldManager , getSearchDependencies ( ) , refresher ) ; engine . initialize ( ) ; return engine ; }
This method creates a {@link ManagedSearchEngine} for an existing {@link IndexReader}.
This method creates a { @link ManagedSearchEngine } for an existing { @link IndexReader } .