Apache Doris 中文技术论坛
Questions Tags Users Badges

倒排索引分词怎么不忽略空格

Asked Mar 27, 2025 Modified Jan 1, 0001
Viewed 36
2.1 query

现在有个查询场景,比如查询张 三,结果只匹配张空格三,不会有张三。如果倒排索引分词,不忽略空格 怎么弄?或者doris还有什么解决方案,要求查询性能快。

edited Jan 1, 0001
Neal_Zzzz17
asked Mar 27, 2025
1 Answers

参考:image.png

你可以使用

SELECT * FROM table_name WHERE content MATCH_PHRASE '张 三 ~1+';
edited Jan 1, 1970
黄海军@SelectDB5208
answered Mar 27, 2025
Related Questions
streamload使用jsonroot导入超大数组chunk问题
doris2.1 非merge-on-write unique表创建倒排索引
1 answers
执行sql,be就直接挂了,doris是2.1.3版本
1 answers
rocketmq-connect-doris集成任务正确启动命令是什么样的?
doris 2.1.8 select 字段子查询不支持where条件
1 answers
powerBI直连doris 报错Failed to prepare statement try to set enable_server_side_prepared_statement=true 和Unsupported MySQL type: BLOB.

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.