Enum elasticsearch_dsl::search::params::SourceFilter [−][src]
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)
Tuple Fields
0: bool
Whether _source
retrieval should be enabled (true
) or disabled (false
)
Include(String)
Tuple Fields
0: 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
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SourceFilter
impl Send for SourceFilter
impl Sync for SourceFilter
impl Unpin for SourceFilter
impl UnwindSafe for SourceFilter
Blanket Implementations
Mutably borrows from an owned value. Read more