public class AbstractSearchResponse extends Object implements Closeable
| Constructor and Description |
|---|
AbstractSearchResponse(org.apache.lucene.search.Query query,
int totalHitsCount,
int returnedHitsCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees any resource associated with this response.
|
org.apache.lucene.search.Query |
getQuery() |
int |
getReturnedHitsCount()
Returns the number of hits returned by this search response.
|
int |
getTotalHits()
Deprecated.
use
getTotalHitsCount() instead. |
int |
getTotalHitsCount()
Returns the number of total hits found by this query (total number of potential hits as reported by Lucene
index).
|
boolean |
isHitLimitExceeded()
Deprecated.
always returns false, since 4.1.0 there is no notion of hit limit
|
public AbstractSearchResponse(org.apache.lucene.search.Query query,
int totalHitsCount,
int returnedHitsCount)
public org.apache.lucene.search.Query getQuery()
public int getTotalHits()
getTotalHitsCount() instead.public int getTotalHitsCount()
getReturnedHitsCount().public int getReturnedHitsCount()
IteratorSearchResponse).public boolean isHitLimitExceeded()
http://jira.codehaus.org/browse/MINDEXER-14public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.