fix(SearchService): use nori tokenizer for elasticsearch

This commit is contained in:
オスカー、 2024-09-05 21:59:18 +09:00
parent 15c0c3a87d
commit 243c9c0075
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -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',
},
}, },
}, },
}, },