Skip to main content

Module mapping

Module mapping 

Source
Expand description

luci-mapping — field types, mappings, and dynamic field detection.

This crate defines how fields are indexed: which fields exist, what types they have, and how unknown fields are handled. Mappings are instructions to the indexing pipeline, not structural constraints on documents.

See [[architecture-api-surface#Schema and Mappings]] for the full design.

Structs§

FieldMapping
A single field’s mapping: its name, type, and indexing flags.
Mapping
An ordered set of field mappings with name-to-ID lookup.
MappingBuilder
Incrementally builds a Mapping.

Enums§

DynamicMode
Controls how documents with unknown fields are handled.
FieldType
The data type of a field in a Luci index.
QuantizationType
Quantization scheme for dense_vector fields.

Functions§

detect_field_type
Infer a FieldType from a JSON value using Elasticsearch’s dynamic mapping rules.