|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPTSQueryResponse
The response from a search query request.
Method Summary | |
---|---|
void |
clear()
Clears this object and releases references to any result set. |
IPTSGroupInfo |
getAllOthersGroup()
Returns information about items that could not be categorized into any of the groups returned by getGroups . |
IPTSQuery |
getCompleteQuery()
|
int |
getFirstResultIndex()
Returns the index of the first result that is part of this response (1-based). |
IPTSGroupInfo[] |
getGroups()
Returns groups discovered during execution of this query, if IPTSQueryRequest.setResultsGroupBy was called. |
com.plumtree.openfoundation.util.IXPEnumerator |
getResults()
Returns an enumeration of the actual results that matched the query. |
int |
getReturnedCount()
Returns the number of results returned as part of this response. |
IPTSSpellingCorrection[] |
getSpellingCorrections()
Returns spelling corrections applied as part of the request. |
int |
getTotalCount()
Returns the total number of items in the search server that matched the query; not all were necessarily returned. |
boolean |
queryIsPartial()
Returns true if the query was executed on a partial search cluster(some nodes were down). |
boolean |
queryTimedOut()
Returns true if the request took too much time to run and a partial result set was returned. |
boolean |
wildcardExpansionIncomplete()
Returns true if processing of a wildcarded query term (e.g. |
Method Detail |
---|
int getFirstResultIndex()
int getReturnedCount()
int getTotalCount()
IPTSQuery getCompleteQuery()
IPTSQueryRequest.setQuery
,
IPTSQueryRequest.restrictTo
, and IPTSQueryRequest.restrictToAnyOf
).
IPTSQueryRequest
simply ANDs all of these queries and restrictions together
using an internally-constructed IPTSBooleanQuery
; that internally constructed
query is what this method returns.boolean queryTimedOut()
Also, note that this method is not meant to be called during execution of the request
(after all, this IPTSQueryResponse
object has not yet been constructed);
you should call it after IPTSQueryRequest.execute
returns,
to determine whether execution completed or not.
boolean queryIsPartial()
boolean wildcardExpansionIncomplete()
com.plumtree.openfoundation.util.IXPEnumerator getResults()
IPTSResult
; the number of items in this enumeration
is equal to the value returned by getReturnedCount
.
IPTSSpellingCorrection[] getSpellingCorrections()
IPTSGroupInfo[] getGroups()
IPTSQueryRequest.setResultsGroupBy
was called. This array
does not include the set of results that could not be categorized
into any group; call getAllOthersGroup for that set.
IPTSGroupInfo getAllOthersGroup()
getGroups
.
getGroups
.void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |