Struct aws_sdk_kendra::operation::query::QueryOutput
source · #[non_exhaustive]pub struct QueryOutput {
pub query_id: Option<String>,
pub result_items: Option<Vec<QueryResultItem>>,
pub facet_results: Option<Vec<FacetResult>>,
pub total_number_of_results: Option<i32>,
pub warnings: Option<Vec<Warning>>,
pub spell_corrected_queries: Option<Vec<SpellCorrectedQuery>>,
pub featured_results_items: Option<Vec<FeaturedResultsItem>>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query_id: Option<String>The identifier for the search. You also use QueryId to identify the search when using the SubmitFeedback API.
result_items: Option<Vec<QueryResultItem>>The results of the search.
facet_results: Option<Vec<FacetResult>>Contains the facet results. A FacetResult contains the counts for each field/attribute key that was specified in the Facets input parameter.
total_number_of_results: Option<i32>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: Option<Vec<Warning>>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.
spell_corrected_queries: Option<Vec<SpellCorrectedQuery>>A list of information related to suggested spell corrections for a query.
featured_results_items: Option<Vec<FeaturedResultsItem>>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.
Implementations§
source§impl QueryOutput
impl QueryOutput
sourcepub fn query_id(&self) -> Option<&str>
pub fn query_id(&self) -> Option<&str>
The identifier for the search. You also use QueryId to identify the search when using the SubmitFeedback API.
sourcepub fn result_items(&self) -> &[QueryResultItem]
pub fn result_items(&self) -> &[QueryResultItem]
The results of the search.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .result_items.is_none().
sourcepub fn facet_results(&self) -> &[FacetResult]
pub fn facet_results(&self) -> &[FacetResult]
Contains the facet results. A FacetResult contains the counts for each field/attribute key that was specified in the Facets input parameter.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .facet_results.is_none().
sourcepub fn total_number_of_results(&self) -> Option<i32>
pub fn total_number_of_results(&self) -> Option<i32>
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.
sourcepub fn warnings(&self) -> &[Warning]
pub fn warnings(&self) -> &[Warning]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .warnings.is_none().
sourcepub fn spell_corrected_queries(&self) -> &[SpellCorrectedQuery]
pub fn spell_corrected_queries(&self) -> &[SpellCorrectedQuery]
A list of information related to suggested spell corrections for a query.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .spell_corrected_queries.is_none().
sourcepub fn featured_results_items(&self) -> &[FeaturedResultsItem]
pub fn featured_results_items(&self) -> &[FeaturedResultsItem]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .featured_results_items.is_none().
source§impl QueryOutput
impl QueryOutput
sourcepub fn builder() -> QueryOutputBuilder
pub fn builder() -> QueryOutputBuilder
Creates a new builder-style object to manufacture QueryOutput.
Trait Implementations§
source§impl Clone for QueryOutput
impl Clone for QueryOutput
source§fn clone(&self) -> QueryOutput
fn clone(&self) -> QueryOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for QueryOutput
impl Debug for QueryOutput
source§impl PartialEq for QueryOutput
impl PartialEq for QueryOutput
source§impl RequestId for QueryOutput
impl RequestId for QueryOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for QueryOutput
Auto Trait Implementations§
impl Freeze for QueryOutput
impl RefUnwindSafe for QueryOutput
impl Send for QueryOutput
impl Sync for QueryOutput
impl Unpin for QueryOutput
impl UnwindSafe for QueryOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more