public class QueryHits extends Object
TopDocs if required.| Constructor and Description |
|---|
QueryHits(LazyQueryState searcher,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sort,
Integer n,
TimeoutManagerImpl timeoutManager,
Map<String,FacetingRequest> facetRequests,
TimeoutExceptionFactory timeoutExceptionFactory,
Coordinates spatialSearchCenter,
String spatialFieldName) |
QueryHits(LazyQueryState searcher,
org.apache.lucene.search.Filter filter,
org.apache.lucene.search.Sort sort,
TimeoutManagerImpl timeoutManager,
Map<String,FacetingRequest> facetRequests,
TimeoutExceptionFactory timeoutExceptionFactory,
Coordinates spatialSearchCenter,
String spatialFieldName) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.document.Document |
doc(int index) |
int |
docId(int index) |
org.apache.lucene.search.Explanation |
explain(int index) |
Map<String,List<Facet>> |
getFacets() |
org.apache.lucene.search.TopDocs |
getTopDocs() |
int |
getTotalHits() |
float |
score(int index) |
org.apache.lucene.search.ScoreDoc |
scoreDoc(int index) |
Double |
spatialDistance(int index) |
void |
visitDocument(int index,
org.apache.lucene.index.StoredFieldVisitor fieldVisitor)
This document loading strategy doesn't return anything as it's the responsibility
of the passed StoredFieldVisitor instance to collect the data it needs.
|
public QueryHits(LazyQueryState searcher, org.apache.lucene.search.Filter filter, org.apache.lucene.search.Sort sort, TimeoutManagerImpl timeoutManager, Map<String,FacetingRequest> facetRequests, TimeoutExceptionFactory timeoutExceptionFactory, Coordinates spatialSearchCenter, String spatialFieldName) throws IOException
IOExceptionpublic QueryHits(LazyQueryState searcher, org.apache.lucene.search.Filter filter, org.apache.lucene.search.Sort sort, Integer n, TimeoutManagerImpl timeoutManager, Map<String,FacetingRequest> facetRequests, TimeoutExceptionFactory timeoutExceptionFactory, Coordinates spatialSearchCenter, String spatialFieldName) throws IOException
IOExceptionpublic org.apache.lucene.document.Document doc(int index)
throws IOException
IOExceptionpublic void visitDocument(int index,
org.apache.lucene.index.StoredFieldVisitor fieldVisitor)
throws IOException
index - ScoreDoc indexfieldVisitor - accessor to the stored field value in the indexIOException - if an error occurs accessing the indexpublic org.apache.lucene.search.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 org.apache.lucene.search.Explanation explain(int index)
throws IOException
IOExceptionpublic int getTotalHits()
public org.apache.lucene.search.TopDocs getTopDocs()
Copyright © 2006–2016 Hibernate. All rights reserved.