search/indexer/mmm-search-indexer-api/src/main/java/net/sf/mmm/search/indexer/base/AbstractSearchIndexer.java
/**
   * This method searches the {@link MutableSearchEntry entries} with the
   * specified properties. At least one of the properties has to be set (not
   * <code>null</code>).
   * 
   * @param id is the {@link MutableSearchEntry#getId() ID} or <code>null</code>
   *        if any ID should match.
   * @param cid is the {@link MutableSearchEntry#getCustomId() custom-ID} or
   *        <code>null</code> if any custom-ID should match.
   * @param uri is the {@link MutableSearchEntry#getUri() URI} or
   *        <code>null</code> if any URI should match.
   * @param source is the {@link MutableSearchEntry#getSource() source} or
   *        <code>null</code> if any source should match.
   * @return the {@link SearchResultPage} for the specified query.
   */
This method searches the  MutableSearchEntry entries with the
specified properties. At least one of the properties has to be set (not
null).

@param id is the  MutableSearchEntry#getId() ID or null
if any ID should match.
@param cid is the  MutableSearchEntry#getCustomId() custom-ID or
null if any custom-ID should match.
@param uri is the  MutableSearchEntry#getUri() URI or
null if any URI should match.
@param source is the  MutableSearchEntry#getSource() source or
null if any source should match.
@return the  SearchResultPage for the specified query.
This method searches the MutableSearchEntry entries with the specified properties . At least one of the properties has to be set ( not null ) . @param id is the MutableSearchEntry#getId () ID or null if any ID should match . @param cid is the MutableSearchEntry#getCustomId () custom - ID or null if any custom - ID should match . @param uri is the MutableSearchEntry#getUri () URI or null if any URI should match . @param source is the MutableSearchEntry#getSource () source or null if any source should match . @return the SearchResultPage for the specified query .
protected SearchResultPage search(Long id, Object cid, String uri, String source) {
    SearchQueryBuilder queryBuilder = getSearchEngine().getQueryBuilder();
    ComplexSearchQuery query = queryBuilder.createComplexQuery();
    if (id != null) {
      query.addRequiredQuery(queryBuilder.createWordQuery(SearchEntry.FIELD_ID, id.toString()));
    }
    if (cid != null) {
      query.addRequiredQuery(queryBuilder.createWordQuery(SearchEntry.FIELD_CUSTOM_ID,
          cid.toString()));
    }
    if (uri != null) {
      query.addRequiredQuery(queryBuilder.createWordQuery(SearchEntry.FIELD_URI, uri));
    }
    if (source != null) {
      query.addRequiredQuery(queryBuilder.createWordQuery(SearchEntry.FIELD_SOURCE, source));
    }
    return getSearchEngine().search(query, 10);
  }
protected SearchResultPage search ( Long id , Object cid , String uri , String source ) { SearchQueryBuilder queryBuilder = getSearchEngine ( ) . getQueryBuilder ( ) ; ComplexSearchQuery query = queryBuilder . createComplexQuery ( ) ; if ( id != null ) { query . addRequiredQuery ( queryBuilder . createWordQuery ( SearchEntry . FIELD_ID , id . toString ( ) ) ) ; } if ( cid != null ) { query . addRequiredQuery ( queryBuilder . createWordQuery ( SearchEntry . FIELD_CUSTOM_ID , cid . toString ( ) ) ) ; } if ( uri != null ) { query . addRequiredQuery ( queryBuilder . createWordQuery ( SearchEntry . FIELD_URI , uri ) ) ; } if ( source != null ) { query . addRequiredQuery ( queryBuilder . createWordQuery ( SearchEntry . FIELD_SOURCE , source ) ) ; } return getSearchEngine ( ) . search ( query , 10 ) ; }
This method searches the {@link MutableSearchEntry entries} with the
 specified properties.
This method searches the { @link MutableSearchEntry entries } with the specified properties .