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

pub enum QueryParserError {
    SyntaxError,
    FieldDoesNotExist(String),
    ExpectedInt(ParseIntError),
    AllButQueryForbidden,
    NoDefaultFieldDeclared,
    FieldNotIndexed(String),
    UnknownTokenizer(StringString),
}

Possible error that may happen when parsing a query.

Variants

Error in the query syntax

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

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

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

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

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

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

Trait Implementations

impl From<QueryParserError> for Error
[src]

[src]

Performs the conversion.

impl Debug for QueryParserError
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for QueryParserError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for QueryParserError
[src]

impl From<ParseIntError> for QueryParserError
[src]

[src]

Performs the conversion.

Auto Trait Implementations