From 8c18cbb7081b726a7b096a7fb2355af95e75b58b Mon Sep 17 00:00:00 2001 From: Zhang Sheng Date: Mon, 20 Jul 2026 13:14:11 +0800 Subject: [PATCH] fix: update Chinese filetype matching patterns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added "包" to the Chinese filetype matching pattern for applications to improve search accuracy. The existing patterns ("安装包|软件|应用|脚本| 程序") were missing some common variations of application-related terms in Chinese user queries. Log: Improved Chinese application file type detection in search Influence: 1. Test search functionality with term "包" for application files 2. Verify existing search patterns still work correctly 3. Check if false positives are introduced for non-application files 4. Ensure all application-related search terms return appropriate results fix: 更新中文文件类型匹配模式 在中文应用程序文件类型的匹配模式中增加了"包"字,以提高搜索准确性。原有的 匹配模式("安装包|软件|应用|脚本|程序")缺少了对中文用户查询中应用程序相关 术语的某些常见变体。 Log: 改进了搜索中中文应用文件类型的检测 Influence: 1. 使用"包"字测试应用程序文件的搜索功能 2. 验证原有搜索模式是否仍然正常工作 3. 检查是否会对非应用程序文件产生误判 4. 确保所有应用程序相关的搜索词都能返回适当结果 Fixes: #370655 --- .../dfm-search-lib/semantic/rules/zh_CN/filetype_rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/filetype_rules.json b/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/filetype_rules.json index 0a4b5dbb..f52acfb5 100644 --- a/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/filetype_rules.json +++ b/src/dfm-search/dfm-search-lib/semantic/rules/zh_CN/filetype_rules.json @@ -129,7 +129,7 @@ }, { "id": "filetype_application", - "pattern": "安装包|软件|应用|脚本|程序", + "pattern": "安装包|软件|应用|脚本|程序|包", "description": "Application packages", "enabled": true, "priority": 150,