Struct elasticsearch_dsl::search::queries::term_level::IdsQuery
source · [−]pub struct IdsQuery { /* private fields */ }Expand description
Returns documents based on their IDs. This query uses document IDs stored in the
_id
field.
To create IDs query:
Query::ids(vec!["2"]);https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-query.html
Implementations
sourceimpl IdsQuery
impl IdsQuery
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
impl StructuralPartialEq for IdsQuery
Auto Trait Implementations
impl RefUnwindSafe for IdsQuery
impl Send for IdsQuery
impl Sync for IdsQuery
impl Unpin for IdsQuery
impl UnwindSafe for IdsQuery
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more