Skip to content

Instantly share code, notes, and snippets.

@tigerneil
Created August 27, 2014 10:10
Show Gist options
  • Save tigerneil/08e6f7f2d3ad80fd646e to your computer and use it in GitHub Desktop.
Save tigerneil/08e6f7f2d3ad80fd646e to your computer and use it in GitHub Desktop.
elasticsearch.yam for maleskine
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**
```
@defp
Copy link

defp commented Sep 2, 2014

ik和mmseg都用了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment