From 96e4fb0cef52b53f70d75be06c693d5177fa10f6 Mon Sep 17 00:00:00 2001 From: windy Date: Wed, 4 Jan 2023 16:46:37 +0800 Subject: [PATCH] =?UTF-8?q?BI-119441=20=E5=85=AC=E5=BC=8F=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=AD=97=E7=AC=A6=E9=A1=B5=E9=9D=A2=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/utils/chinesePY.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/utils/chinesePY.js b/src/core/utils/chinesePY.js index b22cd94cb..392f108b4 100644 --- a/src/core/utils/chinesePY.js +++ b/src/core/utils/chinesePY.js @@ -425,6 +425,10 @@ BI._.extend(BI, { makeFirstPY: function (str, options) { options = options || {}; + // BI-119441 长字段搜索分叉后数量达百万级,这里控制下字段过长的话不进行多音字分叉 + if (str.length > 100 && BI.isNull(options.ignoreMulti)) { + options.ignoreMulti = true; + } if (typeof (str) !== "string") {return "" + str;} var arrResult = []; // 保存中间结果的数组 for (var i = 0, len = str.length; i < len; i++) {