fix sorting case insensitive (#123)

This commit is contained in:
Nordine Bittich
2022-04-04 15:15:22 +02:00
committed by GitHub
parent d1ee2a83d2
commit dcb0ad63ba
3 changed files with 131 additions and 50 deletions

1
.gitignore vendored
View File

@@ -28,3 +28,4 @@ out.json
security.yml
config/proxy-https/proxy_ssl.conf
/config/search/update-handler.store
/config/search/dev/update-handler.store

View File

@@ -122,6 +122,21 @@
}
]
],
"default_settings" : {
"analysis": {
"normalizer": {
"custom_sort_normalizer": {
"type": "custom",
"char_filter": [],
"filter": [
"lowercase",
"trim",
"asciifolding"
]
}
}
}
},
"types": [
{
"type": "mandatory",
@@ -198,7 +213,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -214,7 +230,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -225,7 +242,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -233,7 +251,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -241,7 +260,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -252,7 +272,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -332,7 +353,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -348,7 +370,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -359,7 +382,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -367,7 +391,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -375,7 +400,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -386,7 +412,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -488,7 +515,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -504,7 +532,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -515,7 +544,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -523,7 +553,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -531,7 +562,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -542,7 +574,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -609,7 +642,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -617,7 +651,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -625,7 +660,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -633,7 +669,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -641,7 +678,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -649,7 +687,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
}

View File

@@ -1,7 +1,7 @@
{
"automatic_index_updates": true,
"persist_indexes": true,
"number_of_threads": 6,
"number_of_threads": 11,
"eager_indexing_groups": [
[
{
@@ -46,6 +46,21 @@
}
]
],
"default_settings" : {
"analysis": {
"normalizer": {
"custom_sort_normalizer": {
"type": "custom",
"char_filter": [],
"filter": [
"lowercase",
"trim",
"asciifolding"
]
}
}
}
},
"types": [
{
"type": "mandatory",
@@ -122,7 +137,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -138,7 +154,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -149,7 +166,9 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -157,7 +176,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -165,7 +185,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -176,7 +197,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -256,7 +278,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -272,7 +295,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -283,7 +307,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -291,7 +316,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -299,7 +325,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -310,7 +337,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -412,7 +440,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -420,7 +449,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -428,7 +458,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -439,7 +470,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -447,7 +479,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -455,7 +488,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -466,7 +500,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -533,7 +568,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -541,7 +577,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -549,7 +586,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -557,7 +595,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -565,7 +604,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
@@ -573,7 +613,8 @@
"type": "text",
"fields": {
"field": {
"type": "keyword"
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
}