804e opened a new issue, #62676:
URL: https://github.com/apache/doris/issues/62676

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   doris 4.0.2
   
   ### What's Wrong?
   
   I am trying to add a custom Chinese keyword "深圳科诺" to the IK Analyzer 
dictionary by modifying the `extra_main.dic` file. However, the custom word is 
not being recognized as a single token during segmentation. The system 
continues to split it into separate characters/words.
   
   ### What You Expected?
   
   The result should treat "深圳科诺" as a single token:
   `[{ "token": "深圳科诺" }]`
   
   ### How to Reproduce?
   
   1.  Modify the file `/opt/doris/be/dict/ik/extra_main.dic` on the BE node.
   2.  Add the new line: `深圳科诺`.
   3.  Ensure the file encoding is **UTF-8 (without BOM)**.
   4.  Restart the BE node to reload the configuration.
   5.  Execute the following SQL to test tokenization:
       ```sql
       SELECT TOKENIZE('深圳科诺', '"parser"="ik"');
       ```
       The result splits the word into "深圳", "科", "诺":
       ```json
       [{ "token": "深圳" }, { "token": "科" }, { "token": "诺" }]
       ```
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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