search/indexer/mmm-search-indexer-api/src/main/java/net/sf/mmm/search/indexer/base/strategy/AbstractSearchIndexerUpdateStrategy.java
/**
   * This method is called at the beginning of
   * {@link #index(UpdateStrategyArguments)} to setup the indexing.
   * 
   * @param arguments are the {@link UpdateStrategyArgumentsBean}.
   */
This method is called at the beginning of
#index(UpdateStrategyArguments) to setup the indexing.

@param arguments are the  UpdateStrategyArgumentsBean.
This method is called at the beginning of #index ( UpdateStrategyArguments ) to setup the indexing . @param arguments are the UpdateStrategyArgumentsBean .
protected void preIndex(UpdateStrategyArguments arguments) {
    if (isFullIndexing(arguments)) {
      String sourceId = arguments.getSource().getId();
      if ((arguments.getSourceState().getIndexingDate() != null)
          && (arguments.getOptions().isOverwriteIndex())) {
        getLogger().debug("Removing all search-entries for source: " + sourceId);
        int removeCount = arguments.getIndexer().remove(SearchEntry.FIELD_SOURCE, sourceId);
        getLogger().debug("Removed " + removeCount + " entries/entry.");
      }
    }
  }
protected void preIndex ( UpdateStrategyArguments arguments ) { if ( isFullIndexing ( arguments ) ) { String sourceId = arguments . getSource ( ) . getId ( ) ; if ( ( arguments . getSourceState ( ) . getIndexingDate ( ) != null ) && ( arguments . getOptions ( ) . isOverwriteIndex ( ) ) ) { getLogger ( ) . debug ( "Removing all search-entries for source: " + sourceId ) ; int removeCount = arguments . getIndexer ( ) . remove ( SearchEntry . FIELD_SOURCE , sourceId ) ; getLogger ( ) . debug ( "Removed " + removeCount + " entries/entry." ) ; } } }
This method is called at the beginning of
 {@link #index(UpdateStrategyArguments)} to setup the indexing.
This method is called at the beginning of { @link #index ( UpdateStrategyArguments ) } to setup the indexing .
// skip this if this is the first indexing or the complete index has been // re-created from scratch.