Transform text search patterns to full-text search
(&self, plan: LogicalPlan)
| 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> { |
no test coverage detected