[][src]Struct rusoto_kendra::QueryRequest

pub struct QueryRequest {
    pub attribute_filter: Option<AttributeFilter>,
    pub facets: Option<Vec<Facet>>,
    pub index_id: String,
    pub page_number: Option<i64>,
    pub page_size: Option<i64>,
    pub query_result_type_filter: Option<String>,
    pub query_text: String,
    pub requested_document_attributes: Option<Vec<String>>,
}

Fields

attribute_filter: Option<AttributeFilter>

Enables filtered searches based on document attributes. You can only provide one attribute filter; however, the AndAllFilters, NotFilter, and OrAllFilters parameters contain a list of other filters.

The AttributeFilter parameter enables you to create a set of filtering rules that a document must satisfy to be included in the query results.

facets: Option<Vec<Facet>>

An array of documents attributes. Amazon Kendra returns a count for each attribute key specified. You can use this information to help narrow the search for your user.

index_id: String

The unique identifier of the index to search. The identifier is returned in the response from the operation.

page_number: Option<i64>

Query results are returned in pages the size of the PageSize parameter. By default, Amazon Kendra returns the first page of results. Use this parameter to get result pages after the first one.

page_size: Option<i64>

Sets the number of results that are returned in each page of results. The default page size is 10. The maximum number of results returned is 100. If you ask for more than 100 results, only 100 are returned.

query_result_type_filter: Option<String>

Sets the type of query. Only results for the specified query type are returned.

query_text: String

The text to search for.

requested_document_attributes: Option<Vec<String>>

An array of document attributes to include in the response. No other document attributes are included in the response. By default all document attributes are included in the response.

Trait Implementations

impl Clone for QueryRequest[src]

impl Debug for QueryRequest[src]

impl Default for QueryRequest[src]

impl PartialEq<QueryRequest> for QueryRequest[src]

impl Serialize for QueryRequest[src]

impl StructuralPartialEq for QueryRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.