cdmlib related part for fixing #2931 (Free text search - hit highlighting implemented...
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / search / ISearchResultBuilder.java
index 52926742ab8e01e7ce64d53f100d09069b35dafd..f7a5df0f8b675ac7a9794b95f1d761f0cb03afa4 100644 (file)
@@ -8,7 +8,6 @@ import org.apache.lucene.search.TopDocs;
 
 import eu.etaxonomy.cdm.model.common.CdmBase;
 import eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao;
-import eu.etaxonomy.cdm.search.LuceneSearch;
 
 /**
  * Interface for Builder classes which create {@link SearchResult} instances, from a list of LuceneSearch {@link TopDocs}.
@@ -24,16 +23,16 @@ public interface ISearchResultBuilder {
      * The Cdm enitity id found in the specified <code>idField</code> of the Lucene documents will be used to load
      * the referenced Cdm entities into the <code>SearchResult</code>s.
      *
-     * @param luceneSearch
      * @param topDocsResultSet
+     * @param highlightFields
      * @param dao
      * @param idField
-     * @param propertyPaths TODO
+     * @param propertyPaths
      * @return
      * @throws CorruptIndexException
      * @throws IOException
      */
-    public abstract <T extends CdmBase> List<SearchResult<T>> createResultSetFromIds(LuceneSearch luceneSearch, TopDocs topDocsResultSet,
-            ICdmEntityDao<T> dao, String idField, List<String> propertyPaths) throws CorruptIndexException, IOException;
+    public abstract <T extends CdmBase> List<SearchResult<T>> createResultSet(TopDocs topDocsResultSet,
+            String[] highlightFields, ICdmEntityDao<T> dao, String idField, List<String> propertyPaths) throws CorruptIndexException, IOException;
 
 }
\ No newline at end of file