Expand description
Full-text search re-exports from nodedb-fts.
Query-layer code that needs BM25 scoring, analyzers, or fuzzy matching
imports from here. The implementation lives in the shared nodedb-fts crate.
Lite: uses engine::fts::FtsCollectionManager (wraps FtsIndex<MemoryBackend>).
Origin: uses engine::sparse::fts_redb (wraps FtsIndex<RedbBackend>).
Structs§
- Bm25
Params - BM25 parameters.
- FtsIndex
- Full-text search index generic over storage backend.
- Match
Offset - A character-level offset of a matched term in the original text.
- Memory
Backend - In-memory FTS backend backed by HashMaps keyed by
(tid, collection, …)tuples. - Posting
- A single posting entry for a term in a document.
- Text
Search Result - A scored search result from the inverted index.
Enums§
- Query
Mode - Boolean query mode for multi-term searches.
Traits§
- FtsBackend
- Storage backend abstraction for the full-text search engine.
Functions§
- analyze
- Analyze text into searchable tokens using the standard English analyzer.