public interface ISearchResultBuilder
SearchResult
instances, from a list of LuceneSearch TopDocs
.Modifier and Type | Method and Description |
---|---|
java.util.List<DocumentSearchResult> |
createResultSet(org.apache.lucene.search.TopDocs topDocs,
java.lang.String[] highlightFields)
Creates a
List of DocumentSearchResult entities from the supplied TopDocs . |
<T extends CdmBase> |
createResultSet(org.apache.lucene.search.TopDocs topDocs,
java.lang.String[] highlightFields,
ICdmEntityDao<T> dao,
java.util.Map<CdmBaseType,java.lang.String> idFields,
java.util.List<java.lang.String> propertyPaths)
Creates a
List of SearchResult entities from the supplied TopDocs . |
<T extends CdmBase> |
createResultSet(org.apache.lucene.search.grouping.TopGroups<org.apache.lucene.util.BytesRef> topGroupsResultSet,
java.lang.String[] highlightFields,
ICdmEntityDao<T> dao,
java.util.Map<CdmBaseType,java.lang.String> idFields,
java.util.List<java.lang.String> propertyPaths)
Creates a
List of SearchResult entities from the supplied TopDocs . |
<T extends CdmBase> java.util.List<SearchResult<T>> createResultSet(org.apache.lucene.search.grouping.TopGroups<org.apache.lucene.util.BytesRef> topGroupsResultSet, java.lang.String[] highlightFields, ICdmEntityDao<T> dao, java.util.Map<CdmBaseType,java.lang.String> idFields, java.util.List<java.lang.String> propertyPaths) throws org.apache.lucene.index.CorruptIndexException, java.io.IOException
List
of SearchResult
entities from the supplied TopDocs
.
The firts Cdm enitity id found in the specified idFields
of the Lucene documents will be used to load
the referenced Cdm entities into the SearchResult
s.topGroupsResultSet
- highlightFields
- dao
- idFields
- a map of class names as key and entity id fields as valuespropertyPaths
- org.apache.lucene.index.CorruptIndexException
java.io.IOException
<T extends CdmBase> java.util.List<SearchResult<T>> createResultSet(org.apache.lucene.search.TopDocs topDocs, java.lang.String[] highlightFields, ICdmEntityDao<T> dao, java.util.Map<CdmBaseType,java.lang.String> idFields, java.util.List<java.lang.String> propertyPaths) throws org.apache.lucene.index.CorruptIndexException, java.io.IOException
List
of SearchResult
entities from the supplied TopDocs
.
The first Cdm enitity id found in the specified idFields
of the Lucene documents will be used to load
the referenced Cdm entities into the SearchResult
s.topDocs
- highlightFields
- dao
- idFields
- a map of class names as key and entity id fields as valuespropertyPaths
- org.apache.lucene.index.CorruptIndexException
java.io.IOException
java.util.List<DocumentSearchResult> createResultSet(org.apache.lucene.search.TopDocs topDocs, java.lang.String[] highlightFields) throws org.apache.lucene.index.CorruptIndexException, java.io.IOException
List
of DocumentSearchResult
entities from the supplied TopDocs
.
This method can be used for building index-only results.topDocs
- highlightFields
- org.apache.lucene.index.CorruptIndexException
java.io.IOException
Copyright © 2007-2020 EDIT. All Rights Reserved.