Enum tantivy::query::QueryParserError
[−]
[src]
pub enum QueryParserError { SyntaxError, FieldDoesNotExist(String), ExpectedInt(ParseIntError), AllButQueryForbidden, NoDefaultFieldDeclared, FieldNotIndexed(String), UnknownTokenizer(String, String), }
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
-field, but the value
is not a u64.
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.
UnknownTokenizer(String, String)
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]
fn from(parsing_error: QueryParserError) -> Error
[src]
Performs the conversion.
impl Debug for QueryParserError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for QueryParserError
[src]
fn eq(&self, __arg_0: &QueryParserError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &QueryParserError) -> bool
[src]
This method tests for !=
.
impl Eq for QueryParserError
[src]
impl From<ParseIntError> for QueryParserError
[src]
fn from(err: ParseIntError) -> QueryParserError
[src]
Performs the conversion.