diff --git a/config/search/dev/config.json b/config/search/dev/config.json deleted file mode 100644 index e178c04..0000000 --- a/config/search/dev/config.json +++ /dev/null @@ -1,765 +0,0 @@ -{ - "automatic_index_updates": true, - "persist_indexes": true, - "number_of_threads": 8, - "eager_indexing_groups": [ - [ - { - "variables": [], - "name": "acmidm-editeerder" - }, - { - "variables": [], - "name": "clean" - }, - { - "variables": [], - "name": "public" - } - ], - [ - { - "variables": [], - "name": "acmidm-worship-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": { - "person_id": [ - "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" - ], - "given_name": [ - "http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan", - "http://xmlns.com/foaf/0.1/givenName" - ], - "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" - ], - "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": { - "person_id": { - "type": "text", - "fields": { - "field": { - "type": "keyword" - } - } - }, - "family_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "given_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "first_name_used": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "end_date": { - "type": "date" - }, - "organization_id": { - "type": "text" - }, - "organization_classification": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "organization_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "position_id": { - "type": "text" - }, - "position_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - } - } - } - }, - { - "type": "functionary", - "on_path": "functionaries", - "rdf_type": "http://data.lblod.info/vocabularies/leidinggevenden/Functionaris", - "properties": { - "person_id": [ - "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" - ], - "given_name": [ - "http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan", - "http://xmlns.com/foaf/0.1/givenName" - ], - "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" - ], - "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": { - "person_id": { - "type": "text", - "fields": { - "field": { - "type": "keyword" - } - } - }, - "family_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "given_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "first_name_used": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "end_date": { - "type": "date" - }, - "organization_id": { - "type": "text" - }, - "organization_classification": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "organization_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "position_id": { - "type": "text" - }, - "position_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - } - } - } - }, - { - "type": "minister", - "on_path": "ministers", - "rdf_type": [ - "http://data.lblod.info/vocabularies/erediensten/RolBedienaar", - "http://data.lblod.info/vocabularies/contacthub/AgentInPositie" - ], - "properties": { - "person_id": [ - "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" - ], - "given_name": [ - "http://www.w3.org/ns/org#heldBy", - "http://xmlns.com/foaf/0.1/givenName" - ], - "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" - ], - "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": { - "person_id": { - "type": "text", - "fields": { - "field": { - "type": "keyword" - } - } - }, - "family_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "given_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "first_name_used": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "end_date": { - "type": "date" - }, - "organization_id": { - "type": "text" - }, - "organization_classification": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "organization_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "position_id": { - "type": "text" - }, - "position_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - } - } - } - }, - { - "type": "person", - "composite_types": ["minister", "functionary", "mandatory"], - "on_path": "people", - "properties": [ - { - "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": "given_name", - "mappings": { - "minister": "given_name", - "functionary": "given_name", - "mandatory": "given_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": "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": { - "person_id": { - "type": "text", - "fields": { - "field": { - "type": "keyword" - } - } - }, - "family_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "given_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "first_name_used": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "end_date": { - "type": "date" - }, - "organization_id": { - "type": "text" - }, - "organization_classification": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "organization_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "position_id": { - "type": "text" - }, - "position_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - } - } - } - }, - { - "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": { - "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_id": { - "type": "text" - }, - "classification_name": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "status": { - "type": "text", - "fields": { - "field": { - "type": "keyword", - "normalizer": "custom_sort_normalizer" - } - } - }, - "status_id": { - "type": "text" - }, - "recognized_worship_type_id": { - "type": "text" - }, - "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" - } - } - } - } - } - } - ] -} diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index b25c943..d938b5f 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -58,8 +58,6 @@ services: restart: "no" search: restart: "no" - volumes: - - ./config/search/dev:/config elasticsearch: restart: "no" file: