fix: index municipality names as keywords instead of regular text

Index municipality names as keywords instead of as plain text. This prevents
them from being split at word separators. Thereby avoiding that searches for a
municipality name, as used by the frontend's municipality filter, return
organisations whose municipality is a partial match.

For example, previously the results when searching for "Puurs" also included the
organisations located in "Sint-Amands-Puurs". The latter was tokenized into
three terms, therefore also matching plain "Puurs". By treating the municipality
name as keyword this split non longer happens.
This commit is contained in:
mirdono
2025-01-21 20:35:17 +01:00
committed by Alexander van den Berghe
parent 20d4613400
commit e10c825f75
2 changed files with 10 additions and 10 deletions

View File

@@ -223,7 +223,7 @@
}
},
"organization_municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
@@ -385,7 +385,7 @@
}
},
"organization_municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
@@ -540,7 +540,7 @@
}
},
"organization_municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
@@ -727,7 +727,7 @@
}
},
"organization_municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
@@ -880,7 +880,7 @@
}
},
"municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",

View File

@@ -195,7 +195,7 @@
}
},
"organization_municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
@@ -357,7 +357,7 @@
}
},
"organization_municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
@@ -512,7 +512,7 @@
}
},
"organization_municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
@@ -700,7 +700,7 @@
}
},
"organization_municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
@@ -853,7 +853,7 @@
}
},
"municipality": {
"type": "text",
"type": "keyword",
"fields": {
"field": {
"type": "keyword",