public static interface QueryResponse.Builder extends KendraResponse.Builder, SdkPojo, CopyableBuilder<QueryResponse.Builder,QueryResponse>
| Modifier and Type | Method and Description |
|---|---|
QueryResponse.Builder |
facetResults(Collection<FacetResult> facetResults)
Contains the facet results.
|
QueryResponse.Builder |
facetResults(Consumer<FacetResult.Builder>... facetResults)
Contains the facet results.
|
QueryResponse.Builder |
facetResults(FacetResult... facetResults)
Contains the facet results.
|
QueryResponse.Builder |
featuredResultsItems(Collection<FeaturedResultsItem> featuredResultsItems)
The list of featured result items.
|
QueryResponse.Builder |
featuredResultsItems(Consumer<FeaturedResultsItem.Builder>... featuredResultsItems)
The list of featured result items.
|
QueryResponse.Builder |
featuredResultsItems(FeaturedResultsItem... featuredResultsItems)
The list of featured result items.
|
QueryResponse.Builder |
queryId(String queryId)
The identifier for the search.
|
QueryResponse.Builder |
resultItems(Collection<QueryResultItem> resultItems)
The results of the search.
|
QueryResponse.Builder |
resultItems(Consumer<QueryResultItem.Builder>... resultItems)
The results of the search.
|
QueryResponse.Builder |
resultItems(QueryResultItem... resultItems)
The results of the search.
|
QueryResponse.Builder |
spellCorrectedQueries(Collection<SpellCorrectedQuery> spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
QueryResponse.Builder |
spellCorrectedQueries(Consumer<SpellCorrectedQuery.Builder>... spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
QueryResponse.Builder |
spellCorrectedQueries(SpellCorrectedQuery... spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
|
QueryResponse.Builder |
totalNumberOfResults(Integer totalNumberOfResults)
The total number of items found by the search; however, you can only retrieve up to 100 items.
|
QueryResponse.Builder |
warnings(Collection<Warning> warnings)
A list of warning codes and their messages on problems with your query.
|
QueryResponse.Builder |
warnings(Consumer<Warning.Builder>... warnings)
A list of warning codes and their messages on problems with your query.
|
QueryResponse.Builder |
warnings(Warning... warnings)
A list of warning codes and their messages on problems with your query.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildQueryResponse.Builder queryId(String queryId)
The identifier for the search. You use QueryId to identify the search when using the feedback
API.
queryId - The identifier for the search. You use QueryId to identify the search when using the
feedback API.QueryResponse.Builder resultItems(Collection<QueryResultItem> resultItems)
The results of the search.
resultItems - The results of the search.QueryResponse.Builder resultItems(QueryResultItem... resultItems)
The results of the search.
resultItems - The results of the search.QueryResponse.Builder resultItems(Consumer<QueryResultItem.Builder>... resultItems)
The results of the search.
This is a convenience method that creates an instance of theQueryResultItem.Builder avoiding the need to create one
manually via QueryResultItem.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #resultItems(List.
resultItems - a consumer that will call methods on
QueryResultItem.Builder#resultItems(java.util.Collection) QueryResponse.Builder facetResults(Collection<FacetResult> facetResults)
Contains the facet results. A FacetResult contains the counts for each attribute key that was
specified in the Facets input parameter.
facetResults - Contains the facet results. A FacetResult contains the counts for each attribute key that
was specified in the Facets input parameter.QueryResponse.Builder facetResults(FacetResult... facetResults)
Contains the facet results. A FacetResult contains the counts for each attribute key that was
specified in the Facets input parameter.
facetResults - Contains the facet results. A FacetResult contains the counts for each attribute key that
was specified in the Facets input parameter.QueryResponse.Builder facetResults(Consumer<FacetResult.Builder>... facetResults)
Contains the facet results. A FacetResult contains the counts for each attribute key that was
specified in the Facets input parameter.
FacetResult.Builder avoiding the need to create one
manually via FacetResult.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #facetResults(List.
facetResults - a consumer that will call methods on
FacetResult.Builder#facetResults(java.util.Collection) QueryResponse.Builder totalNumberOfResults(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.QueryResponse.Builder warnings(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.
QueryResponse.Builder warnings(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.
QueryResponse.Builder warnings(Consumer<Warning.Builder>... 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.
This is a convenience method that creates an instance of theWarning.Builder avoiding the need to create one manually
via Warning.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #warnings(List.
warnings - a consumer that will call methods on
Warning.Builder#warnings(java.util.Collection) QueryResponse.Builder spellCorrectedQueries(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.QueryResponse.Builder spellCorrectedQueries(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.QueryResponse.Builder spellCorrectedQueries(Consumer<SpellCorrectedQuery.Builder>... spellCorrectedQueries)
A list of information related to suggested spell corrections for a query.
This is a convenience method that creates an instance of theSpellCorrectedQuery.Builder avoiding the need to create
one manually via SpellCorrectedQuery.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #spellCorrectedQueries(List.
spellCorrectedQueries - a consumer that will call methods on
SpellCorrectedQuery.Builder#spellCorrectedQueries(java.util.Collection) QueryResponse.Builder featuredResultsItems(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.QueryResponse.Builder featuredResultsItems(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.QueryResponse.Builder featuredResultsItems(Consumer<FeaturedResultsItem.Builder>... 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.
This is a convenience method that creates an instance of theFeaturedResultsItem.Builder avoiding the need to create
one manually via FeaturedResultsItem.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #featuredResultsItems(List.
featuredResultsItems - a consumer that will call methods on
FeaturedResultsItem.Builder#featuredResultsItems(java.util.Collection) Copyright © 2023. All rights reserved.