We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e36abeb commit 623576aCopy full SHA for 623576a
src/scripts/update-es-mappings.js
@@ -14,7 +14,11 @@ function createIndex (indexName) {
14
const body = { mappings: {} }
15
body.mappings[config.get('ES.ES_TYPE')] = {
16
properties: {
17
- id: { type: 'keyword' }
+ id: { type: 'keyword' },
18
+ name: {
19
+ type: 'keyword',
20
+ normalizer: 'custom_sort_normalizer'
21
+ }
22
},
23
dynamic_templates: [{
24
metadata: {
@@ -25,6 +29,17 @@ function createIndex (indexName) {
25
29
}
26
30
}]
27
31
32
+ body.settings = {
33
+ analysis: {
34
+ normalizer: {
35
+ custom_sort_normalizer: {
36
+ type: 'custom',
37
+ char_filter: [],
38
+ filter: ['lowercase', 'asciifolding']
39
40
41
42
28
43
44
return esClient.indices.create({
45
index: indexName,
0 commit comments