Enum QueryField

Source
pub enum QueryField {
Show 22 variants Match(Match), MultiMatch(MultiMatch), QueryString(QueryString), SimpleQueryString(SimpleQueryString), MatchPhrase(MatchPhrase), MatchPhrasePrefix(MatchPhrasePrefix), MatchBoolPrefix(MatchBoolPrefix), Intervals(Intervals), Terms(Terms), Term(Term), TermsSet(TermsSet), Bool(Bool), Boosting(Boosting), ConstantScore(ConstantScore), DisMax(DisMax), Wildcard(Wildcard), IDs(IDs), Fuzzy(Fuzzy), Prefix(Prefix), Regexp(Regexp), Exists(Exists), Range(Range),
}

Variants§

§

Match(Match)

https://opensearch.org/docs/latest/query-dsl/full-text/match/

§

MultiMatch(MultiMatch)

https://opensearch.org/docs/latest/query-dsl/full-text/multi-match/

§

QueryString(QueryString)

https://opensearch.org/docs/latest/query-dsl/full-text/query-string/

§

SimpleQueryString(SimpleQueryString)

https://opensearch.org/docs/latest/query-dsl/full-text/simple-query-string/

§

MatchPhrase(MatchPhrase)

https://opensearch.org/docs/latest/query-dsl/full-text/match-phrase/

§

MatchPhrasePrefix(MatchPhrasePrefix)

https://opensearch.org/docs/latest/query-dsl/full-text/match-phrase-prefix/

§

MatchBoolPrefix(MatchBoolPrefix)

https://opensearch.org/docs/latest/query-dsl/full-text/match-bool-prefix/

§

Intervals(Intervals)

https://opensearch.org/docs/latest/query-dsl/full-text/intervals/

§

Terms(Terms)

https://opensearch.org/docs/latest/query-dsl/term/terms/ https://opensearch.org/docs/latest/query-dsl/term/terms/#terms-lookup

§

Term(Term)

https://opensearch.org/docs/latest/query-dsl/term/term/

§

TermsSet(TermsSet)

https://opensearch.org/docs/latest/query-dsl/term/terms-set/

§

Bool(Bool)

https://opensearch.org/docs/latest/query-dsl/compound/bool/

§

Boosting(Boosting)

https://opensearch.org/docs/latest/query-dsl/compound/boosting/

§

ConstantScore(ConstantScore)

https://opensearch.org/docs/latest/query-dsl/compound/constant-score/

§

DisMax(DisMax)

https://opensearch.org/docs/latest/query-dsl/compound/disjunction-max/

§

Wildcard(Wildcard)

https://opensearch.org/docs/latest/query-dsl/term/wildcard/

§

IDs(IDs)

https://opensearch.org/docs/latest/query-dsl/term/ids/

§

Fuzzy(Fuzzy)

https://opensearch.org/docs/latest/query-dsl/term/ids/

§

Prefix(Prefix)

https://opensearch.org/docs/latest/query-dsl/term/prefix/

§

Regexp(Regexp)

https://opensearch.org/docs/latest/query-dsl/term/regexp/

§

Exists(Exists)

https://opensearch.org/docs/latest/query-dsl/term/exists/

§

Range(Range)

https://opensearch.org/docs/latest/query-dsl/term/range/

Trait Implementations§

Source§

impl Clone for QueryField

Source§

fn clone(&self) -> QueryField

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QueryField

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Bool> for QueryField

Source§

fn from(val: Bool) -> Self

Converts to this type from the input type.
Source§

impl From<Boosting> for QueryField

Source§

fn from(val: Boosting) -> Self

Converts to this type from the input type.
Source§

impl From<ConstantScore> for QueryField

Source§

fn from(val: ConstantScore) -> Self

Converts to this type from the input type.
Source§

impl From<DisMax> for QueryField

Source§

fn from(val: DisMax) -> Self

Converts to this type from the input type.
Source§

impl From<Exists> for QueryField

Source§

fn from(val: Exists) -> Self

Converts to this type from the input type.
Source§

impl From<Fuzzy> for QueryField

Source§

fn from(val: Fuzzy) -> Self

Converts to this type from the input type.
Source§

impl From<IDs> for QueryField

Source§

fn from(val: IDs) -> Self

Converts to this type from the input type.
Source§

impl From<Intervals> for QueryField

Source§

fn from(val: Intervals) -> Self

Converts to this type from the input type.
Source§

impl From<Match> for QueryField

Source§

fn from(val: Match) -> Self

Converts to this type from the input type.
Source§

impl From<MatchBoolPrefix> for QueryField

Source§

fn from(val: MatchBoolPrefix) -> Self

Converts to this type from the input type.
Source§

impl From<MatchPhrase> for QueryField

Source§

fn from(val: MatchPhrase) -> Self

Converts to this type from the input type.
Source§

impl From<MatchPhrasePrefix> for QueryField

Source§

fn from(val: MatchPhrasePrefix) -> Self

Converts to this type from the input type.
Source§

impl From<MultiMatch> for QueryField

Source§

fn from(val: MultiMatch) -> Self

Converts to this type from the input type.
Source§

impl From<Prefix> for QueryField

Source§

fn from(val: Prefix) -> Self

Converts to this type from the input type.
Source§

impl From<QueryString> for QueryField

Source§

fn from(val: QueryString) -> Self

Converts to this type from the input type.
Source§

impl From<Range> for QueryField

Source§

fn from(val: Range) -> Self

Converts to this type from the input type.
Source§

impl From<Regexp> for QueryField

Source§

fn from(val: Regexp) -> Self

Converts to this type from the input type.
Source§

impl From<SimpleQueryString> for QueryField

Source§

fn from(val: SimpleQueryString) -> Self

Converts to this type from the input type.
Source§

impl From<Term> for QueryField

Source§

fn from(val: Term) -> Self

Converts to this type from the input type.
Source§

impl From<Terms> for QueryField

Source§

fn from(val: Terms) -> Self

Converts to this type from the input type.
Source§

impl From<TermsSet> for QueryField

Source§

fn from(val: TermsSet) -> Self

Converts to this type from the input type.
Source§

impl From<Wildcard> for QueryField

Source§

fn from(val: Wildcard) -> Self

Converts to this type from the input type.
Source§

impl Serialize for QueryField

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.