@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QueryResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
QueryResult() |
Modifier and Type | Method and Description |
---|---|
QueryResult |
clone() |
boolean |
equals(Object obj) |
List<FacetResult> |
getFacetResults()
Contains the facet results.
|
List<FeaturedResultsItem> |
getFeaturedResultsItems()
The list of featured result items.
|
String |
getQueryId()
The identifier for the search.
|
List<QueryResultItem> |
getResultItems()
The results of the search.
|
List<SpellCorrectedQuery> |
getSpellCorrectedQueries()
A list of information related to suggested spell corrections for a query.
|
Integer |
getTotalNumberOfResults()
The total number of items found by the search.
|
List<Warning> |
getWarnings()
A list of warning codes and their messages on problems with your query.
|
int |
hashCode() |
void |
setFacetResults(Collection<FacetResult> facetResults)
Contains the facet results.
|
void |
setFeaturedResultsItems(Collection<FeaturedResultsItem> featuredResultsItems)
The list of featured result items.
|
void |
setQueryId(String queryId)
The identifier for the search.
|
void |
setResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
|
void |
setSpellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
void |
setTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search.
|
void |
setWarnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
|
String |
toString()
Returns a string representation of this object.
|
QueryResult |
withFacetResults(Collection<FacetResult> facetResults)
Contains the facet results.
|
QueryResult |
withFacetResults(FacetResult... facetResults)
Contains the facet results.
|
QueryResult |
withFeaturedResultsItems(Collection<FeaturedResultsItem> featuredResultsItems)
The list of featured result items.
|
QueryResult |
withFeaturedResultsItems(FeaturedResultsItem... featuredResultsItems)
The list of featured result items.
|
QueryResult |
withQueryId(String queryId)
The identifier for the search.
|
QueryResult |
withResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
|
QueryResult |
withResultItems(QueryResultItem... resultItems)
The results of the search.
|
QueryResult |
withSpellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
QueryResult |
withSpellCorrectedQueries(SpellCorrectedQuery... spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
QueryResult |
withTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search.
|
QueryResult |
withWarnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
|
QueryResult |
withWarnings(Warning... warnings)
A list of warning codes and their messages on problems with your query.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setQueryId(String queryId)
The identifier for the search. You also use QueryId
to identify the search when using the SubmitFeedback API.
queryId
- The identifier for the search. You also use QueryId
to identify the search when using the SubmitFeedback
API.public String getQueryId()
The identifier for the search. You also use QueryId
to identify the search when using the SubmitFeedback API.
QueryId
to identify the search when using the SubmitFeedback
API.public QueryResult withQueryId(String queryId)
The identifier for the search. You also use QueryId
to identify the search when using the SubmitFeedback API.
queryId
- The identifier for the search. You also use QueryId
to identify the search when using the SubmitFeedback
API.public List<QueryResultItem> getResultItems()
The results of the search.
public void setResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
resultItems
- The results of the search.public QueryResult withResultItems(QueryResultItem... resultItems)
The results of the search.
NOTE: This method appends the values to the existing list (if any). Use
setResultItems(java.util.Collection)
or withResultItems(java.util.Collection)
if you want to
override the existing values.
resultItems
- The results of the search.public QueryResult withResultItems(Collection<QueryResultItem> resultItems)
The results of the search.
resultItems
- The results of the search.public List<FacetResult> getFacetResults()
Contains the facet results. A FacetResult
contains the counts for each field/attribute key that was
specified in the Facets
input parameter.
FacetResult
contains the counts for each field/attribute key
that was specified in the Facets
input parameter.public void setFacetResults(Collection<FacetResult> facetResults)
Contains the facet results. A FacetResult
contains the counts for each field/attribute key that was
specified in the Facets
input parameter.
facetResults
- Contains the facet results. A FacetResult
contains the counts for each field/attribute key
that was specified in the Facets
input parameter.public QueryResult withFacetResults(FacetResult... facetResults)
Contains the facet results. A FacetResult
contains the counts for each field/attribute key that was
specified in the Facets
input parameter.
NOTE: This method appends the values to the existing list (if any). Use
setFacetResults(java.util.Collection)
or withFacetResults(java.util.Collection)
if you want to
override the existing values.
facetResults
- Contains the facet results. A FacetResult
contains the counts for each field/attribute key
that was specified in the Facets
input parameter.public QueryResult withFacetResults(Collection<FacetResult> facetResults)
Contains the facet results. A FacetResult
contains the counts for each field/attribute key that was
specified in the Facets
input parameter.
facetResults
- Contains the facet results. A FacetResult
contains the counts for each field/attribute key
that was specified in the Facets
input parameter.public void setTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
totalNumberOfResults
- The total number of items found by the search. However, you can only retrieve up to 100 items. For
example, if the search found 192 items, you can only retrieve the first 100 of the items.public Integer getTotalNumberOfResults()
The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
public QueryResult withTotalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if the search found 192 items, you can only retrieve the first 100 of the items.
totalNumberOfResults
- The total number of items found by the search. However, you can only retrieve up to 100 items. For
example, if the search found 192 items, you can only retrieve the first 100 of the items.public List<Warning> getWarnings()
A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
public void setWarnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
warnings
- A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
public QueryResult withWarnings(Warning... warnings)
A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
NOTE: This method appends the values to the existing list (if any). Use
setWarnings(java.util.Collection)
or withWarnings(java.util.Collection)
if you want to override
the existing values.
warnings
- A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
public QueryResult withWarnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
warnings
- A list of warning codes and their messages on problems with your query.
Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the query. For examples of invalid query syntax, see Searching with advanced query syntax.
public List<SpellCorrectedQuery> getSpellCorrectedQueries()
A list of information related to suggested spell corrections for a query.
public void setSpellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
spellCorrectedQueries
- A list of information related to suggested spell corrections for a query.public QueryResult withSpellCorrectedQueries(SpellCorrectedQuery... spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
NOTE: This method appends the values to the existing list (if any). Use
setSpellCorrectedQueries(java.util.Collection)
or
withSpellCorrectedQueries(java.util.Collection)
if you want to override the existing values.
spellCorrectedQueries
- A list of information related to suggested spell corrections for a query.public QueryResult withSpellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
spellCorrectedQueries
- A list of information related to suggested spell corrections for a query.public List<FeaturedResultsItem> getFeaturedResultsItems()
The list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results.
public void setFeaturedResultsItems(Collection<FeaturedResultsItem> featuredResultsItems)
The list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results.
featuredResultsItems
- The list of featured result items. Featured results are displayed at the top of the search results page,
placed above all other results for certain queries. If there's an exact match of a query, then certain
documents are featured in the search results.public QueryResult withFeaturedResultsItems(FeaturedResultsItem... featuredResultsItems)
The list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results.
NOTE: This method appends the values to the existing list (if any). Use
setFeaturedResultsItems(java.util.Collection)
or withFeaturedResultsItems(java.util.Collection)
if you want to override the existing values.
featuredResultsItems
- The list of featured result items. Featured results are displayed at the top of the search results page,
placed above all other results for certain queries. If there's an exact match of a query, then certain
documents are featured in the search results.public QueryResult withFeaturedResultsItems(Collection<FeaturedResultsItem> featuredResultsItems)
The list of featured result items. Featured results are displayed at the top of the search results page, placed above all other results for certain queries. If there's an exact match of a query, then certain documents are featured in the search results.
featuredResultsItems
- The list of featured result items. Featured results are displayed at the top of the search results page,
placed above all other results for certain queries. If there's an exact match of a query, then certain
documents are featured in the search results.public String toString()
toString
in class Object
Object.toString()
public QueryResult clone()