public class QueryHits extends Object
TopDocs
if required.Constructor and Description |
---|
QueryHits(LazyQueryState searcher,
Filter filter,
Sort sort,
Integer n,
TimeoutManagerImpl timeoutManager,
Map<String,FacetingRequest> facetRequests,
TimeoutExceptionFactory timeoutExceptionFactory,
Coordinates spatialSearchCenter,
String spatialFieldName) |
QueryHits(LazyQueryState searcher,
Filter filter,
Sort sort,
TimeoutManagerImpl timeoutManager,
Map<String,FacetingRequest> facetRequests,
TimeoutExceptionFactory timeoutExceptionFactory,
Coordinates spatialSearchCenter,
String spatialFieldName) |
Modifier and Type | Method and Description |
---|---|
Document |
doc(int index) |
int |
docId(int index) |
Explanation |
explain(int index) |
Map<String,List<Facet>> |
getFacets() |
TopDocs |
getTopDocs() |
int |
getTotalHits() |
float |
score(int index) |
ScoreDoc |
scoreDoc(int index) |
Double |
spatialDistance(int index) |
void |
visitDocument(int 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, Filter filter, Sort sort, TimeoutManagerImpl timeoutManager, Map<String,FacetingRequest> facetRequests, TimeoutExceptionFactory timeoutExceptionFactory, Coordinates spatialSearchCenter, String spatialFieldName) throws IOException
IOException
public QueryHits(LazyQueryState searcher, Filter filter, Sort sort, Integer n, TimeoutManagerImpl timeoutManager, Map<String,FacetingRequest> facetRequests, TimeoutExceptionFactory timeoutExceptionFactory, Coordinates spatialSearchCenter, String spatialFieldName) throws IOException
IOException
public Document doc(int index) throws IOException
IOException
public void visitDocument(int index, StoredFieldVisitor fieldVisitor) throws IOException
index
- ScoreDoc
indexfieldVisitor
- accessor to the stored field value in the indexIOException
- if an error occurs accessing the indexpublic 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 Explanation explain(int index) throws IOException
IOException
public int getTotalHits()
public TopDocs getTopDocs()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved