[−][src]Enum tantivy::query::QueryParserError
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
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]
fn from(parsing_error: QueryParserError) -> TantivyError
[src]
impl From<ParseIntError> for QueryParserError
[src]
fn from(err: ParseIntError) -> QueryParserError
[src]
impl From<ParseError> for QueryParserError
[src]
fn from(err: ParseError) -> QueryParserError
[src]
impl PartialEq<QueryParserError> for QueryParserError
[src]
fn eq(&self, other: &QueryParserError) -> bool
[src]
fn ne(&self, other: &QueryParserError) -> bool
[src]
impl Eq for QueryParserError
[src]
impl Debug for QueryParserError
[src]
Auto Trait Implementations
impl Unpin for QueryParserError
impl Sync for QueryParserError
impl Send for QueryParserError
impl UnwindSafe for QueryParserError
impl RefUnwindSafe for QueryParserError
Blanket Implementations
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,