Enum tantivy::query::QueryParserError [−][src]
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.
ExpectedBase64(DecodeError)
The query contains a term for a bytes field, but the value is not valid base64.
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 Error for QueryParserError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[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
[src]
impl Send for QueryParserError
[src]
impl Sync for QueryParserError
[src]
impl Unpin for QueryParserError
[src]
impl UnwindSafe for QueryParserError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub 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> 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub 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.
pub 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>,