[][src]Struct elastic::types::prelude::ElasticTokenCountFieldMapping

pub struct ElasticTokenCountFieldMapping {
    pub analyzer: Option<&'static str>,
    pub boost: Option<f32>,
    pub doc_values: Option<bool>,
    pub index: Option<IndexAnalysis>,
    pub include_in_all: Option<bool>,
    pub precision_step: Option<u32>,
    pub store: Option<bool>,
}

A multi-field string mapping for a token count.

Fields

analyzer: Option<&'static str>

The analyzer which should be used for analyzed string fields, both at index-time and at search-time (unless overridden by the search_analyzer). Defaults to the default index analyzer, or the standard analyzer.

boost: Option<f32>

Field-level index time boosting. Accepts a floating point number, defaults to 1.0.

doc_values: Option<bool>

Should the field be stored on disk in a column-stride fashion, so that it can later be used for sorting, aggregations, or scripting? Accepts true (default) or false.

index: Option<IndexAnalysis>

Should the field be searchable? Accepts not_analyzed (default) and no.

include_in_all: Option<bool>

Whether or not the field value should be included in the _all field? Accepts true or false. Defaults to false if index is set to no, or if a parent object field sets include_in_all to false. Otherwise defaults to true.

precision_step: Option<u32>

Controls the number of extra terms that are indexed to make range queries faster. Defaults to 32.

store: Option<bool>

Whether the field value should be stored and retrievable separately from the _source field. Accepts true or false (default).

Trait Implementations

impl Clone for ElasticTokenCountFieldMapping[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Serialize for ElasticTokenCountFieldMapping[src]

impl Default for ElasticTokenCountFieldMapping[src]

impl Copy for ElasticTokenCountFieldMapping[src]

impl Debug for ElasticTokenCountFieldMapping[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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