[−][src]Enum tantivy::query::QueryParserError
Possible error that may happen when parsing a query.
Variants
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
or i64
-field, but the value
is neither.
ExpectedFloat(ParseFloatError)
The query contains a term for a f64
-field, but the value
is not a f64.
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.
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.
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.
DateFormatError(ParseError)
The format for the date field is not RFC 3339 compliant.
Trait Implementations
impl Debug for QueryParserError
[src]
impl Display for QueryParserError
[src]
impl Eq for QueryParserError
[src]
impl Fail for QueryParserError
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl From<ParseError> for QueryParserError
[src]
fn from(err: ParseError) -> QueryParserError
[src]
impl From<ParseFloatError> for QueryParserError
[src]
fn from(err: ParseFloatError) -> QueryParserError
[src]
impl From<ParseIntError> for QueryParserError
[src]
fn from(err: ParseIntError) -> QueryParserError
[src]
impl From<QueryParserError> for TantivyError
[src]
fn from(parsing_error: QueryParserError) -> TantivyError
[src]
impl PartialEq<QueryParserError> for QueryParserError
[src]
fn eq(&self, other: &QueryParserError) -> bool
[src]
fn ne(&self, other: &QueryParserError) -> bool
[src]
impl StructuralEq for QueryParserError
[src]
impl StructuralPartialEq for QueryParserError
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
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> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> Erased for T
[src]
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
fn compat(self) -> Compat<Self>
[src]
impl<T> From<T> for T
[src]
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,