Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine search result by customizing analyzer (#4456)
#### 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 #4455 #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 优化本地搜索引擎 ```
- Loading branch information
Showing
3 changed files
with
54 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters