code: public final Map<String, Object> search(Class<?> clazz, String query, int start, int count, boolean fetchRelation)
      {
          if (indexer != null)
          {
              if (indexer.getClass().getName().equals(IndexingConstants.LUCENE_INDEXER))
              {
                  return indexer != null ? ((com.impetus.kundera.index.lucene.Indexer) indexer).search(query, start,
                          count, fetchRelation, kunderaMetadata,
                          KunderaMetadataManager.getEntityMetadata(kunderaMetadata, clazz)) : null;
              }
              else
              {
                  return indexer.search(clazz, KunderaMetadataManager.getEntityMetadata(kunderaMetadata, clazz), query,
                          start, count);
              }
          }
          return new HashMap<String, Object>();
      }
docs: Search.
  
  @param query
  the query
  @param start
  the start
  @param count
  the count
  @param fetchRelation
  the fetch relation
  @return the list