Struct elasticsearch_dsl::search::queries::shape::ShapeLookupQuery
source · [−]pub struct ShapeLookupQuery { /* private fields */ }
Expand description
Queries documents that contain fields indexed using the shape
type.
Requires the shape
Mapping.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-shape-query.html
Implementations
sourceimpl ShapeLookupQuery
impl ShapeLookupQuery
sourcepub fn index<S>(self, index: S) -> Self where
S: ToString,
pub fn index<S>(self, index: S) -> Self where
S: ToString,
Name of the index where the pre-indexed shape is. Defaults to shapes
sourcepub fn path<S>(self, path: S) -> Self where
S: ToString,
pub fn path<S>(self, path: S) -> Self where
S: ToString,
The field specified as path containing the pre-indexed shape. Defaults to shape
sourcepub fn routing<S>(self, routing: S) -> Self where
S: ToString,
pub fn routing<S>(self, routing: S) -> Self where
S: ToString,
The routing of the shape document
sourcepub fn relation(self, relation: SpatialRelation) -> Self
pub fn relation(self, relation: SpatialRelation) -> Self
The shape strategy mapping parameter determines which spatial relation operators may be used at search time.
sourcepub fn ignore_unmapped(self, ignore_unmapped: bool) -> Self
pub fn ignore_unmapped(self, ignore_unmapped: bool) -> Self
When set to true the ignore_unmapped
option will ignore an unmapped
field and will not match any documents for this query. This can be
useful when querying multiple indexes which might have different
mappings. When set to false
(the default value) the query will throw
an exception if the field is not mapped.
sourcepub fn boost<B>(self, boost: B) -> Self where
B: TryInto<Boost>,
pub fn boost<B>(self, boost: B) -> Self where
B: TryInto<Boost>,
Floating point number used to decrease or increase the
relevance scores
of a query. Defaults to 1.0
.
You can use the boost parameter to adjust relevance scores for searches containing two or more queries.
Boost values are relative to the default value of 1.0
.
A boost value between 0 and 1.0
decreases the relevance score.
A value greater than 1.0
increases the relevance score.
Trait Implementations
sourceimpl Clone for ShapeLookupQuery
impl Clone for ShapeLookupQuery
sourcefn clone(&self) -> ShapeLookupQuery
fn clone(&self) -> ShapeLookupQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShapeLookupQuery
impl Debug for ShapeLookupQuery
sourceimpl From<ShapeLookupQuery> for Query
impl From<ShapeLookupQuery> for Query
sourcefn from(q: ShapeLookupQuery) -> Self
fn from(q: ShapeLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl From<ShapeLookupQuery> for Option<Query>
impl From<ShapeLookupQuery> for Option<Query>
sourcefn from(q: ShapeLookupQuery) -> Self
fn from(q: ShapeLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl From<ShapeLookupQuery> for Queries
impl From<ShapeLookupQuery> for Queries
sourcefn from(q: ShapeLookupQuery) -> Self
fn from(q: ShapeLookupQuery) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Query> for ShapeLookupQuery
impl PartialEq<Query> for ShapeLookupQuery
sourceimpl PartialEq<ShapeLookupQuery> for ShapeLookupQuery
impl PartialEq<ShapeLookupQuery> for ShapeLookupQuery
sourcefn eq(&self, other: &ShapeLookupQuery) -> bool
fn eq(&self, other: &ShapeLookupQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ShapeLookupQuery) -> bool
fn ne(&self, other: &ShapeLookupQuery) -> bool
This method tests for !=
.
sourceimpl PartialEq<ShapeLookupQuery> for Query
impl PartialEq<ShapeLookupQuery> for Query
sourceimpl Serialize for ShapeLookupQuery
impl Serialize for ShapeLookupQuery
impl StructuralPartialEq for ShapeLookupQuery
Auto Trait Implementations
impl RefUnwindSafe for ShapeLookupQuery
impl Send for ShapeLookupQuery
impl Sync for ShapeLookupQuery
impl Unpin for ShapeLookupQuery
impl UnwindSafe for ShapeLookupQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more