Skip to main content

Module core

Module core 

Source
Expand description

luci-core — shared types, traits, and error handling for Luci.

This crate is the foundation of the Luci workspace. Every other crate depends on it. It contains no business logic — only type definitions, trait interfaces, and error types.

See [[architecture-overview]] for the crate dependency graph.

Structs§

DocId
Segment-local document identifier.
FieldId
Index into the schema’s field list.
SegmentId
Globally unique segment identifier.

Enums§

LuciError
Top-level error type for all Luci operations.
ScoreMode
Controls whether and how scoring is performed during query execution.

Constants§

NO_MORE_DOCS
Sentinel value indicating no more matching documents.

Traits§

Scorer
Iterates over matching documents and produces scores.
TwoPhaseIterator
Two-phase verification for approximate scorers.

Type Aliases§

Result
Alias for Results in Luci.