Enum elasticsearch_dsl::search::params::SourceFilter
source · pub enum SourceFilter {
Enable(bool),
Include(String),
Includes(Vec<String>),
IncludesExcludes {
includes: Vec<String>,
excludes: Vec<String>,
},
}
Expand description
Control how the _source
field is returned with every hit.
By default operations return the contents of the _source
field
unless you have used the stored_fields
parameter or if the _source
field is disabled.
Variants§
Enable(bool)
Whether _source
retrieval should be enabled (true
) or disabled (false
)
Include(String)
A wildcard pattern to control what parts of _source
should be returned
Includes(Vec<String>)
A collection of wildcard patterns to control what parts of _source
should be returned
IncludesExcludes
Fields
A collection of wildcard patterns to control what parts of _source
should
and should not be returned
Trait Implementations§
source§impl Clone for SourceFilter
impl Clone for SourceFilter
source§fn clone(&self) -> SourceFilter
fn clone(&self) -> SourceFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceFilter
impl Debug for SourceFilter
source§impl<'de> Deserialize<'de> for SourceFilter
impl<'de> Deserialize<'de> for SourceFilter
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more