mirror of https://github.com/halo-dev/halo
e40b5d2388
#### What type of PR is this? /kind improvement /area core /milestone 2.9.x #### What this PR does / why we need it: - Removes dependency `cn.shenyanchao.ik-analyzer:ik-analyzer:9.0.0` due to no significant effect for searching result. - Customize our own analyzer with StandardTokenizer, HTMLStripCharFilter and LowerCaseFilterFactory. Please be aware of that the default field to search has become to `content` instead of `title` + `excerpt` + `content`. If someone wants to search title only, use `title: halo` as query string. For more details, please refer to <https://lucene.apache.org/core/9_5_0/queryparser/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.html>. #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/4455 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 优化本地搜索引擎 ``` |
||
---|---|---|
.. | ||
application | ||
plugin |