Created
August 27, 2014 10:10
-
-
Save tigerneil/08e6f7f2d3ad80fd646e to your computer and use it in GitHub Desktop.
elasticsearch.yam for maleskine
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
in elasticsearch.yml add the | |
``` | |
analyzer: | |
ik: | |
alias: | |
- ik_analyzer | |
type: org.elasticsearch.index.analysis.IkAnalyzerProvider | |
ik_max_word: | |
type: ik | |
use_smart: false | |
ik_smart: | |
type: ik | |
use_smart: true | |
mmseg: | |
alias: | |
- mmseg_analyzer | |
type: org.elasticsearch.index.analysis.MMsegAnalyzerProvider | |
mmseg_maxword: | |
type: custom | |
filter: | |
- lowercase | |
tokenizer: mmseg_maxword | |
mmseg_complex: | |
type: custom | |
filter: | |
- lowercase | |
tokenizer: mmseg_complex | |
mmseg_simple: | |
type: custom | |
filter: | |
- lowercase | |
tokenizer: mmseg_simple** | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ik和mmseg都用了吗?