[][src]Enum tantivy::query::QueryParserError

pub enum QueryParserError {
    SyntaxError,
    FieldDoesNotExist(String),
    ExpectedInt(ParseIntError),
    ExpectedFloat(ParseFloatError),
    AllButQueryForbidden,
    NoDefaultFieldDeclared,
    FieldNotIndexed(String),
    FieldDoesNotHavePositionsIndexed(String),
    UnknownTokenizer(StringString),
    RangeMustNotHavePhrase,
    DateFormatError(ParseError),
}

Possible error that may happen when parsing a query.

Variants

SyntaxError

Error in the query syntax

FieldDoesNotExist(String)

FieldDoesNotExist(field_name: String) The query references a field that is not in the schema

ExpectedInt(ParseIntError)

The query contains a term for a u64 or i64-field, but the value is neither.

ExpectedFloat(ParseFloatError)

The query contains a term for a f64-field, but the value is not a f64.

AllButQueryForbidden

It is forbidden queries that are only "excluding". (e.g. -title:pop)

NoDefaultFieldDeclared

If no default field is declared, running a query without any field specified is forbbidden.

FieldNotIndexed(String)

The field searched for is not declared as indexed in the schema.

FieldDoesNotHavePositionsIndexed(String)

A phrase query was requested for a field that does not have any positions indexed.

UnknownTokenizer(StringString)

The tokenizer for the given field is unknown The two argument strings are the name of the field, the name of the tokenizer

RangeMustNotHavePhrase

The query contains a range query with a phrase as one of the bounds. Only terms can be used as bounds.

DateFormatError(ParseError)

The format for the date field is not RFC 3339 compliant.

Trait Implementations

impl From<QueryParserError> for TantivyError[src]

impl From<ParseIntError> for QueryParserError[src]

impl From<ParseFloatError> for QueryParserError[src]

impl From<ParseError> for QueryParserError[src]

impl Eq for QueryParserError[src]

impl PartialEq<QueryParserError> for QueryParserError[src]

impl Debug for QueryParserError[src]

impl StructuralPartialEq for QueryParserError[src]

impl StructuralEq for QueryParserError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]