org.hibernate.search.query.engine.impl
public class QueryHits extends Object
TopDocs if required.| Constructor and Description |
|---|
QueryHits(IndexSearcherWithPayload searcher,
Query preparedQuery,
Filter filter,
Sort sort,
Integer n,
TimeoutManagerImpl timeoutManager,
Map<String,FacetingRequestImpl> facetRequests,
boolean enableFieldCacheOnTypes,
FieldCacheCollectorFactory idFieldCollector,
TimeoutExceptionFactory timeoutExceptionFactory,
Coordinates spatialSearchCenter,
String spatialFieldName) |
QueryHits(IndexSearcherWithPayload searcher,
Query preparedQuery,
Filter filter,
Sort sort,
TimeoutManagerImpl timeoutManager,
Map<String,FacetingRequestImpl> facetRequests,
boolean enableFieldCacheOnTypes,
FieldCacheCollectorFactory idFieldCollector,
TimeoutExceptionFactory timeoutExceptionFactory,
Coordinates spatialSearchCenter,
String spatialFieldName) |
| Modifier and Type | Method and Description |
|---|---|
Document |
doc(int index) |
Document |
doc(int index,
FieldSelector selector) |
int |
docId(int index) |
Explanation |
explain(int index) |
FieldCacheCollector |
getClassTypeCollector() |
Map<String,List<Facet>> |
getFacets() |
FieldCacheCollector |
getIdsCollector() |
TopDocs |
getTopDocs() |
int |
getTotalHits() |
float |
score(int index) |
ScoreDoc |
scoreDoc(int index) |
Double |
spatialDistance(int index) |
public QueryHits(IndexSearcherWithPayload searcher, Query preparedQuery, Filter filter, Sort sort, TimeoutManagerImpl timeoutManager, Map<String,FacetingRequestImpl> facetRequests, boolean enableFieldCacheOnTypes, FieldCacheCollectorFactory idFieldCollector, TimeoutExceptionFactory timeoutExceptionFactory, Coordinates spatialSearchCenter, String spatialFieldName) throws IOException
IOExceptionpublic QueryHits(IndexSearcherWithPayload searcher, Query preparedQuery, Filter filter, Sort sort, Integer n, TimeoutManagerImpl timeoutManager, Map<String,FacetingRequestImpl> facetRequests, boolean enableFieldCacheOnTypes, FieldCacheCollectorFactory idFieldCollector, TimeoutExceptionFactory timeoutExceptionFactory, Coordinates spatialSearchCenter, String spatialFieldName) throws IOException
IOExceptionpublic Document doc(int index) throws IOException
IOExceptionpublic Document doc(int index, FieldSelector selector) throws IOException
IOExceptionpublic ScoreDoc scoreDoc(int index) throws IOException
IOExceptionpublic int docId(int index)
throws IOException
IOExceptionpublic float score(int index)
throws IOException
IOExceptionpublic Double spatialDistance(int index) throws IOException
IOExceptionpublic Explanation explain(int index) throws IOException
IOExceptionpublic int getTotalHits()
public TopDocs getTopDocs()
public FieldCacheCollector getClassTypeCollector()
public FieldCacheCollector getIdsCollector()
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved