QueryResult
¶
Source code in docs_src/capo_kendra/types/query_result.py
facet_results
instance-attribute
¶
facet_results: NotRequired[FacetResultList]
Contains the facet results. A FacetResult contains the counts for each field/attribute key that was specified in the Facets input parameter.
featured_results_items
instance-attribute
¶
featured_results_items: NotRequired[FeaturedResultsItemList]
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.
query_id
instance-attribute
¶
query_id: NotRequired[QueryId]
The identifier for the search. You also use QueryId to identify the search when using the SubmitFeedback API.
result_items
instance-attribute
¶
result_items: NotRequired[QueryResultItemList]
The results of the search.
spell_corrected_queries
instance-attribute
¶
spell_corrected_queries: NotRequired[SpellCorrectedQueryList]
A list of information related to suggested spell corrections for a query.
total_number_of_results
instance-attribute
¶
total_number_of_results: NotRequired[Integer]
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.
warnings
instance-attribute
¶
warnings: NotRequired[WarningList]
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.