[−][src]Enum rs_es::query::functions::Function
Function
Variants
ScriptScore(ScriptScore)
Weight(Weight)
RandomScore(RandomScore)
FieldValueFactor(FieldValueFactor)
Linear(Decay)
Exp(Decay)
Gauss(Decay)
Methods
impl Function
[src]
pub fn build_script_score<A>(script: A) -> ScriptScore where
A: Into<String>,
[src]
A: Into<String>,
impl Function
[src]
pub fn build_weight<A>(weight: A) -> Weight where
A: Into<f64>,
[src]
A: Into<f64>,
impl Function
[src]
pub fn build_random_score<A>(seed: A) -> RandomScore where
A: Into<i64>,
[src]
A: Into<i64>,
impl Function
[src]
pub fn build_field_value_factor<A>(field: A) -> FieldValueFactor where
A: Into<String>,
[src]
A: Into<String>,
impl Function
[src]
pub fn build_decay<A, B, C>(field: A, origin: B, scale: C) -> Decay where
A: Into<String>,
B: Into<Origin>,
C: Into<Scale>,
[src]
A: Into<String>,
B: Into<Origin>,
C: Into<Scale>,
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,