[−][src]Struct rusoto_kendra::SortingConfiguration
Specifies the document attribute to use to sort the response to a Amazon Kendra query. You can specify a single attribute for sorting. The attribute must have the Sortable
flag set to true
, otherwise Amazon Kendra returns an exception.
You can sort attributes of the following types.
-
Date value
-
Long value
-
String value
You can't sort attributes of the following type.
-
String list value
Fields
document_attribute_key: String
The name of the document attribute used to sort the response. You can use any field that has the Sortable
flag set to true.
You can also sort by any of the following built-in attributes:
-
category
-
createdat
-
lastupdatedat
-
version
-
view_count
sort_order: String
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.
Trait Implementations
impl Clone for SortingConfiguration
[src]
pub fn clone(&self) -> SortingConfiguration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SortingConfiguration
[src]
impl Default for SortingConfiguration
[src]
pub fn default() -> SortingConfiguration
[src]
impl PartialEq<SortingConfiguration> for SortingConfiguration
[src]
pub fn eq(&self, other: &SortingConfiguration) -> bool
[src]
pub fn ne(&self, other: &SortingConfiguration) -> bool
[src]
impl Serialize for SortingConfiguration
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for SortingConfiguration
[src]
Auto Trait Implementations
impl RefUnwindSafe for SortingConfiguration
[src]
impl Send for SortingConfiguration
[src]
impl Sync for SortingConfiguration
[src]
impl Unpin for SortingConfiguration
[src]
impl UnwindSafe for SortingConfiguration
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,