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