Skip to main content

Module text_search

Module text_search 

Source
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§

Bm25Params
BM25 parameters.
FtsIndex
Full-text search index generic over storage backend.
MatchOffset
A character-level offset of a matched term in the original text.
MemoryBackend
In-memory FTS backend backed by HashMaps keyed by (tid, collection, …) tuples.
Posting
A single posting entry for a term in a document.
TextSearchResult
A scored search result from the inverted index.

Enums§

QueryMode
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.