summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/elasticsearch.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/db/elasticsearch.ts b/src/db/elasticsearch.ts
index 4acff40793..ee5769d1d4 100644
--- a/src/db/elasticsearch.ts
+++ b/src/db/elasticsearch.ts
@@ -4,6 +4,12 @@ import config from '../config';
const index = {
settings: {
analysis: {
+ normalizer: {
+ lowercase_normalizer: {
+ type: 'custom',
+ filter: ['lowercase']
+ }
+ },
analyzer: {
bigram: {
tokenizer: 'bigram_tokenizer'
@@ -24,7 +30,8 @@ const index = {
text: {
type: 'text',
index: true,
- analyzer: 'bigram'
+ analyzer: 'bigram',
+ normalizer: 'lowercase_normalizer'
}
}
}