Skip to main content

LuciError

Enum LuciError 

Source
pub enum LuciError {
    Io(Error),
    IndexNotFound(String),
    IndexCorrupted(String),
    WriterLocked,
    SchemaConflict {
        field: String,
        expected: String,
        actual: String,
    },
    UnsupportedQuery(String),
    InvalidQuery(String),
    InvalidValue(String),
    TransactionActive,
    QueryBehaviorDifference {
        feature: String,
        difference: String,
    },
    SegmentFormatMigrationRequired(String),
    SegmentFormatUnknown(String),
}
Expand description

Top-level error type for all Luci operations.

Designed to map cleanly across the FFI boundary to Python exceptions. See [[architecture-api-surface#Error Handling]].

Variants§

§

Io(Error)

Underlying I/O error.

§

IndexNotFound(String)

Index file does not exist at the given path.

§

IndexCorrupted(String)

Index file failed checksum validation — data is corrupt. See [[architecture-storage-format#Crash Recovery]].

§

WriterLocked

Another IndexWriter holds the file lock. See [[architecture-concurrency-model#Single-Writer Model]].

§

SchemaConflict

Document field type conflicts with the schema mapping.

Fields

§field: String
§expected: String
§actual: String
§

UnsupportedQuery(String)

Query type is recognized but not yet implemented.

§

InvalidQuery(String)

Query JSON is malformed or fails validation.

§

InvalidValue(String)

A field value cannot be stored as specified — e.g. a keyword or _id whose UTF-8 length exceeds the 65535-byte columnar dictionary limit. Rejected at indexing time rather than silently truncated ([[code-must-not-lie]]). See [[optimization-keyword-dict-offset-index]].

§

TransactionActive

Write attempted on Index while a transaction is active on the same thread. Use txn.add() instead of index.add().

§

QueryBehaviorDifference

ES query feature that Luci implements with different behavior. The query will NOT execute — users must acknowledge the difference.

Fields

§feature: String
§difference: String
§

SegmentFormatMigrationRequired(String)

HNSW segment is in a recognized older format but requires user-driven migration (re-index). Used for the v0.7.1 → v0.7.2 cosine format break.

§

SegmentFormatUnknown(String)

HNSW segment carries an unknown format version byte. Most likely a future-format file opened by an older Luci binary.

Trait Implementations§

Source§

impl Debug for LuciError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for LuciError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for LuciError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for LuciError

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool