pub enum IndexError {
LiveFrequencyCache {
reason: &'static str,
},
Postings(PostingsError),
Stats(Bm25Error),
RowsNotAscending {
row: u32,
},
LiveRowOutOfRange {
segment: usize,
row: u32,
row_count: u32,
},
LiveLengthMissing {
segment: usize,
row: u32,
},
}Expand description
An index construction failure.
Variants§
LiveFrequencyCache
Exact live-frequency memoization refused inconsistent state or a poisoned lock. No cache failure is interpreted as a zero frequency.
Postings(PostingsError)
A posting list rejected an append.
Stats(Bm25Error)
The corpus had no documents or no tokens.
RowsNotAscending
Documents were added out of row order.
LiveRowOutOfRange
A live-row counter named a row outside its lexical segment.
Fields
LiveLengthMissing
A sealed segment’s dense length counter omitted a valid live row.
Trait Implementations§
Source§impl Clone for IndexError
impl Clone for IndexError
Source§fn clone(&self) -> IndexError
fn clone(&self) -> IndexError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexError
impl Debug for IndexError
Source§impl Display for IndexError
impl Display for IndexError
impl Eq for IndexError
Source§impl Error for IndexError
impl Error for IndexError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Bm25Error> for IndexError
impl From<Bm25Error> for IndexError
Source§impl From<IndexError> for LexicalFilterError
impl From<IndexError> for LexicalFilterError
Source§fn from(error: IndexError) -> Self
fn from(error: IndexError) -> Self
Converts to this type from the input type.
Source§impl From<PostingsError> for IndexError
impl From<PostingsError> for IndexError
Source§fn from(error: PostingsError) -> Self
fn from(error: PostingsError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IndexError
impl PartialEq for IndexError
impl StructuralPartialEq for IndexError
Auto Trait Implementations§
impl Freeze for IndexError
impl RefUnwindSafe for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl UnsafeUnpin for IndexError
impl UnwindSafe for IndexError
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
Mutably borrows from an owned value. Read more