fix(SearchService): use nori tokenizer for elasticsearch
This commit is contained in:
parent
15c0c3a87d
commit
243c9c0075
@ -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…
Reference in New Issue
Block a user