Repository navigation
Fix search_nodes: use title index, compose node_type filter, and expose property filters - #1097
Conversation
…property filters (closes #1084) - surreal_store.rs: Remove early-return from title_contains branch; compose title_contains and node_type into a single WHERE clause so both filters are applied together. Also properly handle offset in non-title-search paths. - tools.rs: Change search_nodes from field="content" to field="title"; handle empty query (no title filter); parse filters map param into QueryFilterItem entries with operator="equals" - search.rs: Add filters field (HashMap<String,String>) to SearchNodesParams - def_search_nodes: Add filters to tool schema; update description to document title search, empty-query behavior, and property filter capability - prompt_assembler.rs: Update Tool Strategy Guide with filters guidance - skill_pipeline.rs: Add LISTING BY TYPE OR PROPERTY section to Research & Search guidance with examples - ollama_integration.rs: Add test_pipeline_search_nodes_with_type_filter e2e test - search_ops.rs: Wire node_types/property_filters to semantic_search_nodes and add include_edges/graph_boost fields to SearchSemanticInput - Add 5 new unit tests for search_nodes params parsing and schema validation Co-Authored-By: Claude <[email protected]>
Code Review — Initial ReviewReview Type: Initial Review Requirements Check
All acceptance criteria met. Code Review Findings🟡 Important: Redundant
|
malibio
left a comment
There was a problem hiding this comment.
Review complete. All acceptance criteria met. One minor cleanup suggestion noted in the PR comment.
…se property filters (#1097) * Fix: search_nodes uses title index, compose node_type filter, expose property filters (closes #1084) - surreal_store.rs: Remove early-return from title_contains branch; compose title_contains and node_type into a single WHERE clause so both filters are applied together. Also properly handle offset in non-title-search paths. - tools.rs: Change search_nodes from field="content" to field="title"; handle empty query (no title filter); parse filters map param into QueryFilterItem entries with operator="equals" - search.rs: Add filters field (HashMap<String,String>) to SearchNodesParams - def_search_nodes: Add filters to tool schema; update description to document title search, empty-query behavior, and property filter capability - prompt_assembler.rs: Update Tool Strategy Guide with filters guidance - skill_pipeline.rs: Add LISTING BY TYPE OR PROPERTY section to Research & Search guidance with examples - ollama_integration.rs: Add test_pipeline_search_nodes_with_type_filter e2e test - search_ops.rs: Wire node_types/property_filters to semantic_search_nodes and add include_edges/graph_boost fields to SearchSemanticInput - Add 5 new unit tests for search_nodes params parsing and schema validation Co-Authored-By: Claude <[email protected]> * Fix: remove redundant has_title_search flag in query_nodes title_contains block --------- Co-authored-by: Claude <[email protected]>
Closes #1084