airborne12 opened a new pull request, #61055:
URL: https://github.com/apache/doris/pull/61055

   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Problem Summary:
   
   Change the default `mode` of the `search()` function from `"standard"` to 
`"lucene"`.
   
   Previously, when users called `search(dsl)` or `search(dsl, options)` 
without explicitly specifying the `mode` parameter, it defaulted to 
`"standard"` mode. This PR changes the default to `"lucene"` mode 
(ES/Lucene-style boolean parsing), which is more commonly expected by users 
familiar with Elasticsearch query_string syntax.
   
   Users who need the standard mode can still explicitly specify 
`'{"mode":"standard"}'` in the options parameter.
   
   ### Release note
   
   Change the default mode of the `search()` function from `standard` to 
`lucene`. The `lucene` mode uses ES/Lucene-style boolean parsing which is more 
intuitive for Elasticsearch users. To use the previous standard mode, 
explicitly set `mode` to `standard` in the options parameter.
   
   ### Check List (For Author)
   
   - Test
       - [x] Regression test
       - [x] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. The default mode of `search()` function changed from 
`standard` to `lucene`. Users who rely on the standard mode behavior without 
explicitly specifying the mode will now get lucene mode behavior.
   
   - Does this need documentation?
       - [ ] No.
       - [x] Yes.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label


-- 
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]

Reply via email to