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§
- Field
Mapping - A single field’s mapping: its name, type, and indexing flags.
- Mapping
- An ordered set of field mappings with name-to-ID lookup.
- Mapping
Builder - Incrementally builds a
Mapping.
Enums§
- Dynamic
Mode - Controls how documents with unknown fields are handled.
- Field
Type - The data type of a field in a Luci index.
- Quantization
Type - Quantization scheme for
dense_vectorfields.
Functions§
- detect_
field_ type - Infer a
FieldTypefrom a JSON value using Elasticsearch’s dynamic mapping rules.