Files
app-organization-portal/config/search/dev/config.json
mirdono e10c825f75 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.
2025-01-22 17:02:43 +01:00

878 lines
27 KiB
JSON

{
"automatic_index_updates": true,
"persist_indexes": true,
"number_of_threads": 8,
"eager_indexing_groups": [
[
{
"variables": [],
"name": "acmidm-worship-editeerder"
},
{
"variables": [],
"name": "clean"
},
{
"variables": [],
"name": "public"
}
],
[
{
"variables": [],
"name": "acmidm-editeerder"
},
{
"variables": [],
"name": "clean"
},
{
"variables": [],
"name": "public"
}
]
],
"default_settings": {
"analysis": {
"normalizer": {
"custom_sort_normalizer": {
"type": "custom",
"char_filter": [],
"filter": ["lowercase", "trim", "asciifolding"]
},
"identifier_normalizer": {
"type": "custom",
"char_filter": ["identifier_alphanumeric_filter"],
"filter": ["lowercase", "trim", "asciifolding"]
}
},
"char_filter": {
"identifier_alphanumeric_filter": {
"type": "pattern_replace",
"pattern": "[^a-zA-Z0-9]",
"replacement": ""
}
}
}
},
"types": [
{
"type": "mandatory",
"on_path": "mandatories",
"rdf_type": [
"http://data.vlaanderen.be/ns/mandaat#Mandataris",
"http://data.lblod.info/vocabularies/erediensten/EredienstMandataris"
],
"properties": {
"given_name": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"http://xmlns.com/foaf/0.1/givenName"
],
"person_id": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"person_uuid": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"family_name": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"http://xmlns.com/foaf/0.1/familyName"
],
"first_name_used": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"https://data.vlaanderen.be/ns/persoon#gebruikteVoornaam"
],
"end_date": "http://data.vlaanderen.be/ns/mandaat#einde",
"organization_id": [
"http://www.w3.org/ns/org#holds",
"^http://www.w3.org/ns/org#hasPost",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"organization_classification": [
"http://www.w3.org/ns/org#holds",
"^http://www.w3.org/ns/org#hasPost",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/ns/org#classification",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"organization_name": [
"http://www.w3.org/ns/org#holds",
"^http://www.w3.org/ns/org#hasPost",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"organization_municipality": [
"http://www.w3.org/ns/org#holds",
"^http://www.w3.org/ns/org#hasPost",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"https://data.vlaanderen.be/ns/adres#gemeentenaam"
],
"organization_province": [
"http://www.w3.org/ns/org#holds",
"^http://www.w3.org/ns/org#hasPost",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"http://www.w3.org/ns/locn#adminUnitL2"
],
"position_id": [
"http://www.w3.org/ns/org#holds",
"http://www.w3.org/ns/org#role",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"position_name": [
"http://www.w3.org/ns/org#holds",
"http://www.w3.org/ns/org#role",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
"mappings": {
"properties": {
"family_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"person_id": {
"type": "text",
"fields": {
"field": {
"type": "keyword"
}
}
},
"given_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_id": {
"type": "text"
},
"organization_classification": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_province": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_municipality": {
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"position_id": {
"type": "text"
},
"position_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"end_date": {
"type": "date"
}
}
}
},
{
"type": "functionary",
"on_path": "functionaries",
"rdf_type": "http://data.lblod.info/vocabularies/leidinggevenden/Functionaris",
"properties": {
"given_name": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"http://xmlns.com/foaf/0.1/givenName"
],
"person_id": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"person_uuid": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"family_name": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"http://xmlns.com/foaf/0.1/familyName"
],
"first_name_used": [
"http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
"https://data.vlaanderen.be/ns/persoon#gebruikteVoornaam"
],
"end_date": "http://data.vlaanderen.be/ns/mandaat#einde",
"organization_id": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"organization_classification": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/ns/org#classification",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"organization_name": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"organization_municipality": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"https://data.vlaanderen.be/ns/adres#gemeentenaam"
],
"organization_province": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"http://www.w3.org/ns/locn#adminUnitL2"
],
"position_id": [
"http://www.w3.org/ns/org#holds",
"http://www.w3.org/ns/org#role",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"position_name": [
"http://www.w3.org/ns/org#holds",
"http://www.w3.org/ns/org#role",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
"mappings": {
"properties": {
"family_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"person_id": {
"type": "text",
"fields": {
"field": {
"type": "keyword"
}
}
},
"given_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_id": {
"type": "text"
},
"organization_classification": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_province": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_municipality": {
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"position_id": {
"type": "text"
},
"position_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"end_date": {
"type": "date"
}
}
}
},
{
"type": "minister",
"on_path": "ministers",
"rdf_type": [
"http://data.lblod.info/vocabularies/erediensten/RolBedienaar",
"http://data.lblod.info/vocabularies/contacthub/AgentInPositie"
],
"properties": {
"given_name": [
"http://www.w3.org/ns/org#heldBy",
"http://xmlns.com/foaf/0.1/givenName"
],
"person_id": [
"http://www.w3.org/ns/org#heldBy",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"person_uuid": [
"http://www.w3.org/ns/org#heldBy",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"family_name": [
"http://www.w3.org/ns/org#heldBy",
"http://xmlns.com/foaf/0.1/familyName"
],
"first_name_used": [
"http://www.w3.org/ns/org#heldBy",
"https://data.vlaanderen.be/ns/persoon#gebruikteVoornaam"
],
"end_date": "http://data.lblod.info/vocabularies/contacthub/eindedatum",
"organization_id": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"organization_classification": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor",
"http://www.w3.org/ns/org#classification",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"organization_name": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"organization_municipality": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor",
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"https://data.vlaanderen.be/ns/adres#gemeentenaam"
],
"organization_province": [
"http://www.w3.org/ns/org#holds",
"^http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor",
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"http://www.w3.org/ns/locn#adminUnitL2"
],
"position_id": [
"http://www.w3.org/ns/org#holds",
"http://data.lblod.info/vocabularies/erediensten/functie",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"position_name": [
"http://www.w3.org/ns/org#holds",
"http://data.lblod.info/vocabularies/erediensten/functie",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
"mappings": {
"properties": {
"family_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"person_id": {
"type": "text",
"fields": {
"field": {
"type": "keyword"
}
}
},
"given_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_id": {
"type": "text"
},
"organization_classification": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_province": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_municipality": {
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"position_id": {
"type": "text"
},
"position_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"end_date": {
"type": "date"
}
}
}
},
{
"type": "person",
"composite_types": ["minister", "functionary", "mandatory"],
"on_path": "people",
"properties": [
{
"name": "given_name",
"mappings": {
"minister": "given_name",
"functionary": "given_name",
"mandatory": "given_name"
}
},
{
"name": "person_id",
"mappings": {
"minister": "person_id",
"functionary": "person_id",
"mandatory": "person_id"
}
},
{
"name": "family_name",
"mappings": {
"minister": "family_name",
"functionary": "family_name",
"mandatory": "family_name"
}
},
{
"name": "first_name_used",
"mappings": {
"minister": "first_name_used",
"functionary": "first_name_used",
"mandatory": "first_name_used"
}
},
{
"name": "end_date",
"mappings": {
"minister": "end_date",
"functionary": "end_date",
"mandatory": "end_date"
}
},
{
"name": "organization_id",
"mappings": {
"minister": "organization_id",
"functionary": "organization_id",
"mandatory": "organization_id"
}
},
{
"name": "organization_classification",
"mappings": {
"minister": "organization_classification",
"functionary": "organization_classification",
"mandatory": "organization_classification"
}
},
{
"name": "organization_name",
"mappings": {
"minister": "organization_name",
"functionary": "organization_name",
"mandatory": "organization_name"
}
},
{
"name": "organization_municipality",
"mappings": {
"minister": "organization_municipality",
"functionary": "organization_municipality",
"mandatory": "organization_municipality"
}
},
{
"name": "organization_province",
"mappings": {
"minister": "organization_province",
"functionary": "organization_province",
"mandatory": "organization_province"
}
},
{
"name": "position_id",
"mappings": {
"minister": "position_id",
"functionary": "position_id",
"mandatory": "position_id"
}
},
{
"name": "position_name",
"mappings": {
"minister": "position_name",
"functionary": "position_name",
"mandatory": "position_name"
}
}
],
"mappings": {
"properties": {
"family_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"person_id": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"given_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_id": {
"type": "text"
},
"organization_classification": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_province": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"organization_municipality": {
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"position_id": {
"type": "text"
},
"position_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"end_date": {
"type": "date"
}
}
}
},
{
"type": "organization",
"on_path": "organizations",
"rdf_type": [
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
"http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid",
"http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst",
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
"http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan",
"http://www.w3.org/ns/regorg#RegisteredOrganization"
],
"properties": {
"name": "http://www.w3.org/2004/02/skos/core#prefLabel",
"legal_name": "http://www.w3.org/ns/regorg#legalName",
"alternative_name": "http://www.w3.org/2004/02/skos/core#altLabel",
"classification_id": [
"http://www.w3.org/ns/org#classification",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"classification_name": [
"http://www.w3.org/ns/org#classification",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"status": [
"http://www.w3.org/ns/regorg#orgStatus",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"status_id": [
"http://www.w3.org/ns/regorg#orgStatus",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"recognized_worship_type_id": [
"http://data.lblod.info/vocabularies/erediensten/typeEredienst",
"http://mu.semte.ch/vocabularies/core/uuid"
],
"recognized_worship_type_name": [
"http://data.lblod.info/vocabularies/erediensten/typeEredienst",
"http://www.w3.org/2004/02/skos/core#prefLabel"
],
"province": [
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"http://www.w3.org/ns/locn#adminUnitL2"
],
"municipality": [
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"https://data.vlaanderen.be/ns/adres#gemeentenaam"
],
"identifier": [
"http://www.w3.org/ns/adms#identifier",
"https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator",
"https://data.vlaanderen.be/ns/generiek#lokaleIdentificator"
]
},
"mappings": {
"properties": {
"classification_id": {
"type": "text"
},
"recognized_worship_type_id": {
"type": "text"
},
"name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"legal_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"alternative_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"classification_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"status": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"recognized_worship_type_name": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"province": {
"type": "text",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"municipality": {
"type": "keyword",
"fields": {
"field": {
"type": "keyword",
"normalizer": "custom_sort_normalizer"
}
}
},
"identifier": {
"type": "text",
"fields": {
"index": {
"type": "keyword",
"normalizer": "identifier_normalizer"
}
}
}
}
}
}
]
}