Enum tantivy::query::QueryParserError [−][src]
pub enum QueryParserError { SyntaxError, FieldDoesNotExist(String), ExpectedInt(ParseIntError), AllButQueryForbidden, NoDefaultFieldDeclared, FieldNotIndexed(String), FieldDoesNotHavePositionsIndexed(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.
FieldDoesNotHavePositionsIndexed(String)
A phrase query was requested for a field that does not have any positions indexed.
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]
impl From<QueryParserError> for Error
fn from(parsing_error: QueryParserError) -> Error
[src]
fn from(parsing_error: QueryParserError) -> Error
Performs the conversion.
impl Debug for QueryParserError
[src]
impl Debug for QueryParserError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for QueryParserError
[src]
impl PartialEq for QueryParserError
fn eq(&self, other: &QueryParserError) -> bool
[src]
fn eq(&self, other: &QueryParserError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &QueryParserError) -> bool
[src]
fn ne(&self, other: &QueryParserError) -> bool
This method tests for !=
.
impl Eq for QueryParserError
[src]
impl Eq for QueryParserError
impl From<ParseIntError> for QueryParserError
[src]
impl From<ParseIntError> for QueryParserError
fn from(err: ParseIntError) -> QueryParserError
[src]
fn from(err: ParseIntError) -> QueryParserError
Performs the conversion.
Auto Trait Implementations
impl Send for QueryParserError
impl Send for QueryParserError
impl Sync for QueryParserError
impl Sync for QueryParserError