All Known Implementing Classes:
SearchHandle
public interface SearchResults
The SearchResults represent the set of results
returned by a search.
Method Summary
All Methods Instance Methods Abstract Methods
Returns the named constraint used in the search
(if requested).
Returns an iterator over the constraints used in
the search (if requested).
Returns the array of constraint names used in
the search (if requested).
Returns the array of facet names returned by
this search.
Returns the facet results for the named
facet.
Returns the array of facet results.
Returns the match results.
Returns the search metrics.
int
Returns the maximum number of results in the
search response page.
Returns the plan for the search (if
requested).
Returns the cts:query used in the search (if
requested).
Returns the search query definition associated
with this query.
Returns the array of reports returned by this
search.
The type of transform used to produce the result
snippets.
long
Returns the offset of the first result in the
search reponse page.
Returns the string query input (if provided and
requested).
long
Returns an estimate of the total number of
results, which is accurate for unfiltered queries.
Returns the array of warnings returned by this
search.
Method Details
getQueryCriteria
Returns the search query definition associated
with this query.
Returns:
The search query definition.
getTotalResults
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.
Returns:
The result estimate.
getStart
long getStart ()
Returns the offset of the first result in the
search reponse page.
Returns:
The first result number.
getPageLength
int getPageLength ()
Returns the maximum number of results in the
search response page.
Returns:
The page size.
getSnippetTransformType
String getSnippetTransformType ()
The type of transform used to produce the result
snippets.
Returns:
The snippet transform type
getMetrics
Returns the search metrics.
Returns:
The metrics.
getMatchResults
Returns the match results.
Returns:
The match results.
getFacetResults
Returns the array of facet results.
Returns:
The facet results.
getFacetResult
Returns the facet results for the named
facet.
Parameters:
name - The facet name.
Returns:
The facet results, or null if no facet with the specified name
exists.
getFacetNames
Returns the array of facet names returned by
this search.
Returns:
The array facet names.
getPlan
Returns the query plan.
Returns:
The query plan.
getWarnings
Returns the array of warnings returned by this
search.
Returns:
The warnings.
getReports
Returns the array of reports returned by this
search.
Returns:
The reports.
getConstraintNames
Returns the array of constraint names used in
the search (if requested).
Returns:
The constraint names.
getConstraint
Returns the named constraint used in the search
(if requested).
Type Parameters:
T - the type of XMLReadHandle to return
Parameters:
name - The constraint name.
handle - An XML handle for reading the
constraint.
Returns:
The handle on the constraint.
getConstraintIterator
Returns an iterator over the constraints used in
the search (if requested).
Type Parameters:
T - the type of XMLReadHandle's to return in the
Iterator
Parameters:
handle - An XML handle for reading the
constraints.
Returns:
An iterator that populates the handle with each
constraint.
getPlan
Returns the plan for the search (if
requested).
Type Parameters:
T - the type of XMLReadHandle to return
Parameters:
handle - An XML handle for reading the plan.
Returns:
The handle on the plan.
getStringQueries
Returns the string query input (if provided and
requested).
Returns:
The string queries.
getQuery
Returns the cts:query used in the search (if
requested).
Type Parameters:
T - the type of XMLReadHandle to return
Parameters:
handle - An XML handle for reading the query.
Returns:
The handle on the query.
Copyright (c) 2010-2025 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.