public class AbstractSearchResponse
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
private org.apache.lucene.search.Query |
query |
private int |
returnedHitsCount |
private int |
totalHitsCount |
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
|
private final org.apache.lucene.search.Query query
private final int totalHitsCount
private final int returnedHitsCount
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-14
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException