Enum tantivy::query::QueryParserError [−][src]
pub enum QueryParserError {
Show 13 variants
SyntaxError,
FieldDoesNotExist(String),
ExpectedInt(ParseIntError),
ExpectedBase64(DecodeError),
ExpectedFloat(ParseFloatError),
AllButQueryForbidden,
NoDefaultFieldDeclared,
FieldNotIndexed(String),
FieldDoesNotHavePositionsIndexed(String),
UnknownTokenizer(String, String),
RangeMustNotHavePhrase,
DateFormatError(ParseError),
FacetFormatError(FacetParseError),
}
Expand description
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
Tuple Fields of FieldDoesNotExist
0: String
The query contains a term for a u64
or i64
-field, but the value
is neither.
Tuple Fields of ExpectedInt
The query contains a term for a bytes field, but the value is not valid base64.
Tuple Fields of ExpectedBase64
0: DecodeError
The query contains a term for a f64
-field, but the value
is not a f64.
Tuple Fields of ExpectedFloat
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.
Tuple Fields of FieldNotIndexed
0: String
A phrase query was requested for a field that does not have any positions indexed.
Tuple Fields of FieldDoesNotHavePositionsIndexed
0: String
The tokenizer for the given field is unknown The two argument strings are the name of the field, the name of the tokenizer
The query contains a range query with a phrase as one of the bounds. Only terms can be used as bounds.
The format for the date field is not RFC 3339 compliant.
Tuple Fields of DateFormatError
0: ParseError
The format for the facet field is invalid.
Tuple Fields of FacetFormatError
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for QueryParserError
impl Send for QueryParserError
impl Sync for QueryParserError
impl Unpin for QueryParserError
impl UnwindSafe for QueryParserError
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more