Skip to content

Commit

Permalink
fix(SearchService): use nori tokenizer for elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
SWREI committed Sep 5, 2024
1 parent 15c0c3a commit 243c9c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/backend/src/core/SearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
},
},
Expand Down

0 comments on commit 243c9c0

Please sign in to comment.