search/indexer/mmm-search-indexer-impl-lucene/src/main/java/net/sf/mmm/search/indexer/impl/lucene/LuceneSearchIndexer.java
/**
   * This method performs the actual remove by {@link Term}.
   *
   * @see #removeByCustumId(String)
   * @see #removeByUri(String, String)
   * @see IndexWriter#deleteDocuments(Term)
   *
   * @param term is the {@link Term} identifying the {@link SearchEntry entry/entries} to remove.
   * @return the number of removed {@link SearchEntry entries}.
   */
This method performs the actual remove by  Term.

@param term is the  Term identifying the  SearchEntry entry/entries to remove.
@return the number of removed  SearchEntry entries.
This method performs the actual remove by Term . @param term is the Term identifying the SearchEntry entry / entries to remove . @return the number of removed SearchEntry entries .
protected int remove(Term term) {
    try {
      IndexWriter writer = getIndexWriter();
      int count = writer.getReader().docFreq(term);
      if (count > 0) {
        writer.deleteDocuments(term);
      }
      return count;
    } catch (IOException e) {
      throw new SearchRemoveFailedException(e, term.field(), term.text());
    }
  }
protected int remove ( Term term ) { try { IndexWriter writer = getIndexWriter ( ) ; int count = writer . getReader ( ) . docFreq ( term ) ; if ( count > 0 ) { writer . deleteDocuments ( term ) ; } return count ; } catch ( IOException e ) { throw new SearchRemoveFailedException ( e , term . field ( ) , term . text ( ) ) ; } }
This method performs the actual remove by {@link Term}.
This method performs the actual remove by { @link Term } .