From 243c9c00759b4172cff8be5b374a1aaafaf9a0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B4=EB=9D=BC=EC=BF=A0=EB=AA=A8?= Date: Thu, 5 Sep 2024 21:59:18 +0900 Subject: [PATCH] fix(SearchService): use nori tokenizer for elasticsearch --- packages/backend/src/core/SearchService.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts index f45ff012d..318b8fea1 100644 --- a/packages/backend/src/core/SearchService.ts +++ b/packages/backend/src/core/SearchService.ts @@ -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', + }, }, }, },