Skip to main content

Crate cairn_text

Crate cairn_text 

Source
Expand description

Text indexing (tantivy) + autocomplete + geo-bias + fuzzy.

Phase 2.5 scope:

  • Single doc per Place, multi-value name field carries every localized name.
  • name_prefix carries prefix-ngram terms for autocomplete.
  • Stored fields hydrate hits: place_id, level, kind, lon, lat, admin_path.
  • Search supports a layer filter (kind allowlist), fuzzy edit distance (forward mode), and a focus point that re-ranks top candidates by distance.

Structs§

Hit
SearchOptions
TextIndex

Enums§

SearchMode
TextError

Functions§

build_index
Build a fresh tantivy index from a stream of Place values.
kind_str