Class QueryHits
java.lang.Object
org.hibernate.search.query.engine.impl.QueryHits
A helper class which gives access to the current query and its hits. This class will dynamically
reload the underlying
TopDocs if required.-
Constructor Summary
ConstructorsConstructorDescriptionQueryHits(IndexSearcherWithPayload searcher, Query preparedQuery, Filter filter, Sort sort, Integer n, TimeoutManagerImpl timeoutManager, Map<String, FacetingRequestImpl> facetRequests, boolean enableFieldCacheOnTypes, FieldCacheCollectorFactory idFieldCollector) QueryHits(IndexSearcherWithPayload searcher, Query preparedQuery, Filter filter, Sort sort, TimeoutManagerImpl timeoutManager, Map<String, FacetingRequestImpl> facetRequests, boolean enableFieldCacheOnTypes, FieldCacheCollectorFactory idFieldCollector) -
Method Summary
-
Constructor Details
-
QueryHits
public QueryHits(IndexSearcherWithPayload searcher, Query preparedQuery, Filter filter, Sort sort, TimeoutManagerImpl timeoutManager, Map<String, FacetingRequestImpl> facetRequests, boolean enableFieldCacheOnTypes, FieldCacheCollectorFactory idFieldCollector) throws IOException- Throws:
IOException
-
QueryHits
public QueryHits(IndexSearcherWithPayload searcher, Query preparedQuery, Filter filter, Sort sort, Integer n, TimeoutManagerImpl timeoutManager, Map<String, FacetingRequestImpl> facetRequests, boolean enableFieldCacheOnTypes, FieldCacheCollectorFactory idFieldCollector) throws IOException- Throws:
IOException
-
-
Method Details
-
doc
- Throws:
IOException
-
doc
- Throws:
IOException
-
scoreDoc
- Throws:
IOException
-
docId
- Throws:
IOException
-
score
- Throws:
IOException
-
explain
- Throws:
IOException
-
getTotalHits
public int getTotalHits() -
getTopDocs
-
getFacets
-
getClassTypeCollector
-
getIdsCollector
-