public interface SearchResults
The SearchResults represent the set of results returned by a search.
| Modifier and Type | Method and Description |
|---|---|
<T extends XMLReadHandle> |
getConstraint(String name,
T handle)
Returns the named constraint used in the search (if requested).
|
<T extends XMLReadHandle> |
getConstraintIterator(T handle)
Returns an iterator over the constraints used in the search (if requested).
|
String[] |
getConstraintNames()
Returns the array of constraint names used in the search (if requested).
|
String[] |
getFacetNames()
Returns the array of facet names returned by this search.
|
FacetResult |
getFacetResult(String name)
Returns the facet results for the named facet.
|
FacetResult[] |
getFacetResults()
Returns the array of facet results.
|
MatchDocumentSummary[] |
getMatchResults()
Returns the match results.
|
SearchMetrics |
getMetrics()
Returns the search metrics.
|
int |
getPageLength()
Returns the maximum number of results in the search response page.
|
Document |
getPlan()
Returns the query plan.
|
<T extends XMLReadHandle> |
getPlan(T handle)
Returns the plan for the search (if requested).
|
<T extends XMLReadHandle> |
getQuery(T handle)
Returns the cts:query used in the search (if requested).
|
QueryDefinition |
getQueryCriteria()
Returns the query definition associated with this query.
|
SearchHandle.Report[] |
getReports()
Returns the array of reports returned by this search.
|
String |
getSnippetTransformType()
The type of transform used to produce the result snippets.
|
long |
getStart()
Returns the offset of the first result in the search reponse page.
|
String[] |
getStringQueries()
Returns the string query input (if provided and requested).
|
long |
getTotalResults()
Returns an estimate of the total number of results, which is accurate for unfiltered queries.
|
SearchHandle.Warning[] |
getWarnings()
Returns the array of warnings returned by this search.
|
QueryDefinition getQueryCriteria()
Returns the query definition associated with this query.
long getTotalResults()
Returns an estimate of the total number of results, which is accurate for unfiltered queries. In unfiltered queries, documents are matched based entirely on indexes. In filtered queries, documents are inspected during retrieval, which allows criteria for which indexes don’t exist but makes the final result count unpredictable.
long getStart()
Returns the offset of the first result in the search reponse page.
int getPageLength()
Returns the maximum number of results in the search response page.
String getSnippetTransformType()
The type of transform used to produce the result snippets.
SearchMetrics getMetrics()
Returns the search metrics.
MatchDocumentSummary[] getMatchResults()
Returns the match results.
FacetResult[] getFacetResults()
Returns the array of facet results.
FacetResult getFacetResult(String name)
Returns the facet results for the named facet.
name - The facet name.String[] getFacetNames()
Returns the array of facet names returned by this search.
Document getPlan()
Returns the query plan.
SearchHandle.Warning[] getWarnings()
Returns the array of warnings returned by this search.
SearchHandle.Report[] getReports()
Returns the array of reports returned by this search.
String[] getConstraintNames()
Returns the array of constraint names used in the search (if requested).
<T extends XMLReadHandle> T getConstraint(String name, T handle)
Returns the named constraint used in the search (if requested).
T - the type of XMLReadHandle to returnname - The constraint name.handle - An XML handle for reading the constraint.<T extends XMLReadHandle> Iterator<T> getConstraintIterator(T handle)
Returns an iterator over the constraints used in the search (if requested).
T - the type of XMLReadHandle’s to return in the Iteratorhandle - An XML handle for reading the constraints.<T extends XMLReadHandle> T getPlan(T handle)
Returns the plan for the search (if requested).
T - the type of XMLReadHandle to returnhandle - An XML handle for reading the plan.String[] getStringQueries()
Returns the string query input (if provided and requested).
<T extends XMLReadHandle> T getQuery(T handle)
Returns the cts:query used in the search (if requested).
T - the type of XMLReadHandle to returnhandle - An XML handle for reading the query.Copyright © 2013-2017 MarkLogic Corporation.