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

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

Asked Mar 27 Modified Jan 1, 0001
Viewed 28
2.1 query

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

edited Jan 1, 0001
Neal_Zzzz17
asked Mar 27
1 Answers

参考:image.png

你可以使用

SELECT * FROM table_name WHERE content MATCH_PHRASE '张 三 ~1+';
edited Jan 1, 1970
黄海军@SelectDB4918
answered Mar 27
Related Questions
2.1.5版本doris集群,采集任务偶尔报错,有大佬帮忙看下什么原因吗
dorid 定时使用STARTS '2025-06-12 07:00:00'刷新不生效
Spring Framework安全漏洞,期望升级依赖版本
2 answers
Doris读取mysql元数据COLUMNS表,无法展示字段值'PRI'关键字的数据,'PRI'会变成‘’
期望有一个计算SQL指纹的函数。
doris 数据写入失败-can not cast from origin type varchar(65533) to target type=invalid_type

Terms of service Privacy policy

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