fix(SearchService): use nori tokenizer for elasticsearch
This commit is contained in:
parent
15c0c3a87d
commit
243c9c0075
1 changed files with 9 additions and 0 deletions
|
@ -148,12 +148,21 @@ export class SearchService {
|
||||||
type: 'kuromoji_tokenizer',
|
type: 'kuromoji_tokenizer',
|
||||||
mode: 'search',
|
mode: 'search',
|
||||||
},
|
},
|
||||||
|
nori: {
|
||||||
|
type: 'nori_tokenizer',
|
||||||
|
decompound_mode: 'mixed',
|
||||||
|
discard_punctuation: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
analyzer: {
|
analyzer: {
|
||||||
kuromoji_analyzer: {
|
kuromoji_analyzer: {
|
||||||
type: 'custom',
|
type: 'custom',
|
||||||
tokenizer: 'kuromoji',
|
tokenizer: 'kuromoji',
|
||||||
},
|
},
|
||||||
|
nori_analyzer: {
|
||||||
|
type: 'custom',
|
||||||
|
tokenizer: 'nori',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue