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:
committed by
Alexander van den Berghe
parent
20d4613400
commit
e10c825f75
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user