pub enum TextIndexError {
Tantivy(TantivyError),
QueryParse(QueryParserError),
WriterPoisoned,
WipeInProgress,
Io(Error),
Config(String),
SchemaMismatch,
EmptyPattern,
NotBuilt,
CandidateLimitExceeded {
limit: u64,
},
SubjectLimitExceeded {
limit: u64,
},
Meta {
path: PathBuf,
detail: String,
},
}Expand description
Failure of a text-index operation.
Variants§
Tantivy(TantivyError)
Tantivy reported a failure (I/O, schema, query parse, commit).
QueryParse(QueryParserError)
The full-text query string could not be parsed.
WriterPoisoned
A previous panic poisoned the writer mutex.
WipeInProgress
A wipe is in progress: the put raced the fence and was rejected before committing. The rejection maps to a transient status, but the standard retry budget (milliseconds) is far shorter than any wipe — in practice the insert fails loudly and the load is rerun (documents are idempotent; no row lands on the rejected path).
Io(Error)
A filesystem operation failed.
Config(String)
The configuration is not usable.
SchemaMismatch
The index directory was built with a different schema.
EmptyPattern
The search pattern produced no analyzable text.
NotBuilt
No index exists on this partition yet.
CandidateLimitExceeded
The candidate drain exceeded the per-request guard.
SubjectLimitExceeded
The subject resolve exceeded the per-request distinct-row guard.
Meta
The sidecar metadata file is unreadable or malformed.
Trait Implementations§
Source§impl Debug for TextIndexError
impl Debug for TextIndexError
Source§impl Display for TextIndexError
impl Display for TextIndexError
Source§impl Error for TextIndexError
impl Error for TextIndexError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for TextIndexError
impl From<Error> for TextIndexError
Source§impl From<QueryParserError> for TextIndexError
impl From<QueryParserError> for TextIndexError
Auto Trait Implementations§
impl Freeze for TextIndexError
impl !RefUnwindSafe for TextIndexError
impl Send for TextIndexError
impl Sync for TextIndexError
impl Unpin for TextIndexError
impl UnsafeUnpin for TextIndexError
impl !UnwindSafe for TextIndexError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more