MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / transform_text_search

Method transform_text_search

graphlite/src/plan/optimizer.rs:522–530  ·  view source on GitHub ↗

Transform text search patterns to full-text search

(&self, plan: LogicalPlan)

Source from the content-addressed store, hash-verified

520
521 /// Transform text search patterns to full-text search
522 fn transform_text_search(&self, plan: LogicalPlan) -> Result<LogicalPlan, PlanningError> {
523 // Transform the root node to detect and convert text search patterns
524 let optimized_root = self.transform_text_search_node(plan.root)?;
525
526 Ok(LogicalPlan {
527 root: optimized_root,
528 variables: plan.variables,
529 })
530 }
531
532 /// Recursively transform nodes to detect text search patterns
533 fn transform_text_search_node(&self, node: LogicalNode) -> Result<LogicalNode, PlanningError> {

Callers 1

apply_index_rulesMethod · 0.80

Calls 1

Tested by

no test coverage detected