Skip to content

Commit 1b8e22d

Browse files
authored
Merge pull request #68 from eisbilir/fix/role-issues-01
fix: role index use normalizer
2 parents 32cf10b + fc7267f commit 1b8e22d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scripts/createIndex.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,11 @@ async function createIndex () {
155155
body: {
156156
mappings: {
157157
properties: {
158-
name: { type: 'keyword' },
158+
name: { type: 'keyword',
159+
normalizer: 'lowercaseNormalizer' },
159160
description: { type: 'keyword' },
160-
listOfSkills: { type: 'keyword' },
161+
listOfSkills: { type: 'keyword',
162+
normalizer: 'lowercaseNormalizer' },
161163
rates: {
162164
properties: {
163165
global: { type: 'integer' },

0 commit comments

Comments
 (0)