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',
|
||||
mode: 'search',
|
||||
},
|
||||
nori: {
|
||||
type: 'nori_tokenizer',
|
||||
decompound_mode: 'mixed',
|
||||
discard_punctuation: false,
|
||||
},
|
||||
},
|
||||
analyzer: {
|
||||
kuromoji_analyzer: {
|
||||
type: 'custom',
|
||||
tokenizer: 'kuromoji',
|
||||
},
|
||||
nori_analyzer: {
|
||||
type: 'custom',
|
||||
tokenizer: 'nori',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user