Files
milvus/internal
Buqian ZhengandGitHub 85c3aeb8c0 fix: honor scalar index policy for JSON string predicates (#51467)
issue: https://github.com/milvus-io/milvus/issues/51466

## What changed

`PhyUnaryRangeFilterExpr::DetermineExecPath()` previously used a
JSON-specific hard-coded denylist for string predicates:

- `Match`
- `PostfixMatch`
- `InnerMatch`

This bypassed the concrete scalar index's `ShouldUseOp()` policy. As a
result:

- indexes capable of evaluating these predicates, such as `STL_SORT`,
were
  forced to scan and parse raw JSON;
- JSON string predicates could use a different execution policy from
ordinary
  VARCHAR predicates;
- `RegexMatch` remained on the index path even for indexes whose planner
policy
  explicitly preferred raw-data execution.

---------

Signed-off-by: Buqian Zheng <zhengbuqian@gmail.com>
2026-07-17 11:22:40 +08:00
..