airborne12 opened a new pull request, #60635:
URL: https://github.com/apache/doris/pull/60635
## Summary
Refactor SearchDslParser from two-phase parsing to single-phase ANTLR
parsing:
- **Eliminate hand-written preprocessing**: The previous two-phase approach
used string manipulation to preprocess DSL before ANTLR parsing, which was
mangling regex patterns like `/(\\d{1,2}:\\d{2} [AP]M)/`
- **Native bareQuery support**: Added `bareQuery` rule to ANTLR grammar to
handle terms without field prefix directly
- **Implicit conjunction**: Made `AND` optional in grammar to support
space-separated terms using `default_operator` (AND/OR)
- **Lucene mode semantics**: Added `luceneMode` parameter to multi-field
expansion for proper `OCCUR_BOOLEAN` handling
- **Preserve explicit fields**: Multi-field expansion now correctly
preserves fields not in the expansion list
## Test Plan
- [x] All 106 unit tests pass
- [x] All 18 search regression tests pass
- [x] Manual verification of regex pattern handling
🤖 Generated with [Claude Code](https://claude.ai/code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]