restructure: move search.rs and query.rs into query/ directory
search.rs → query/engine.rs (algorithms, pipeline, seed matching) query.rs → query/parser.rs (PEG query language, field resolution) query/mod.rs re-exports for backwards compatibility. crate::search still works (aliased to query::engine). crate::query::run_query resolves to the parser's entry point. No logic changes — pure file reorganization. Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
c9e622e150
commit
55715ad998
4 changed files with 18 additions and 2 deletions
|
|
@ -8,11 +8,14 @@ pub mod config;
|
||||||
pub mod store;
|
pub mod store;
|
||||||
pub mod util;
|
pub mod util;
|
||||||
pub mod graph;
|
pub mod graph;
|
||||||
pub mod search;
|
pub mod query;
|
||||||
pub mod similarity;
|
pub mod similarity;
|
||||||
pub mod spectral;
|
pub mod spectral;
|
||||||
pub mod lookups;
|
pub mod lookups;
|
||||||
pub mod query;
|
// search was moved into query/engine
|
||||||
|
pub use query::engine as search;
|
||||||
|
// old query.rs moved into query/parser
|
||||||
|
pub use query::parser as query_parser;
|
||||||
pub mod transcript;
|
pub mod transcript;
|
||||||
pub mod neuro;
|
pub mod neuro;
|
||||||
pub mod counters;
|
pub mod counters;
|
||||||
|
|
|
||||||
13
poc-memory/src/query/mod.rs
Normal file
13
poc-memory/src/query/mod.rs
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
// query/ — query parsing, search algorithms, and pipeline execution
|
||||||
|
//
|
||||||
|
// parser.rs — PEG-based query language (key ~ 'foo' | sort degree | limit 10)
|
||||||
|
// engine.rs — search algorithms: spreading activation, spectral, geodesic,
|
||||||
|
// manifold, confluence. Query DSL execution. Seed matching.
|
||||||
|
|
||||||
|
pub mod parser;
|
||||||
|
pub mod engine;
|
||||||
|
|
||||||
|
// Re-export parser's run_query as the main query entry point
|
||||||
|
// (engine::run_query is the internal search pipeline, accessed via crate::search)
|
||||||
|
pub use parser::run_query;
|
||||||
|
pub use parser::execute_query;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue