Struct elastic::types::string::mapping::ElasticTokenCountFieldMapping
[−]
[src]
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 Copy for ElasticTokenCountFieldMapping
[src]
impl Clone for ElasticTokenCountFieldMapping
[src]
fn clone(&self) -> ElasticTokenCountFieldMapping
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for ElasticTokenCountFieldMapping
[src]
fn default() -> ElasticTokenCountFieldMapping
[src]
Returns the "default value" for a type. Read more
impl Serialize for ElasticTokenCountFieldMapping
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more