Skip to main content

Module search

Module search 

Source
Expand description

Pluggable search strategies for storage backends.

A SearchStrategy is one way of searching stored content: a keyword scan, a full-text index, vector similarity. Backends delegate their Storage::search to a strategy, and consumers such as memory stores can override it. KeywordSearchStrategy is the default for every shipped backend.

Structs§

KeywordSearchStrategy
Keyword search by token overlap (KeywordSearchStrategy), the default for every shipped backend.
StorageSearchResult
A single result from a search (StorageSearchResult).

Traits§

SearchStrategy
A pluggable way to search a storage backend (SearchStrategy).