Skip to main content

GraphStoreSearch

Trait GraphStoreSearch 

Source
pub trait GraphStoreSearch: GraphStore { }
Expand description

Index-backed search capabilities that an LPG store may optionally provide.

Keeps the base GraphStore scoped to graph-structure operations. Stores that back text or vector indexes implement these methods with real search logic; stores that don’t (columnar bases, projections, RDF adapters) accept the no-op defaults and the executor falls through to per-row evaluation.

§Symmetric text and vector APIs

text_search and vector_search are peer operations returning owned Vec<(NodeId, f64)>. The planner decides strategy based on has_*_index and vector_index_metric introspection; the store executes the chosen plan, falling back to brute-force internally when the request is valid but no matching index exists.

Implementors§