diff --git a/config/authorization/config.ex b/config/authorization/config.ex
index d1784cb..e99ed52 100644
--- a/config/authorization/config.ex
+++ b/config/authorization/config.ex
@@ -68,7 +68,7 @@ defmodule Acl.UserGroups.Config do
defp sparql_query_for_access_role( group_string ) do
"PREFIX ext:
PREFIX mu:
- SELECT ?session_group ?session_role WHERE {
+ SELECT distinct ?session_group ?session_role WHERE {
ext:sessionGroup/mu:uuid ?session_group;
ext:sessionRole ?session_role.
FILTER( ?session_role = \"#{group_string}\" )
@@ -116,30 +116,6 @@ defmodule Acl.UserGroups.Config do
}
]
},
- %GroupSpec{
- name: "ch-lezer",
- useage: [:read],
- access: access_by_role( "ABBOrganisatiePortaalGebruiker-lezer" ),
- graphs: [ %GraphSpec{
- graph: "http://mu.semte.ch/graphs/organisatieportaal",
- constraint: %ResourceConstraint{
- resource_types: @protected_resource_type } } ] },
- %GroupSpec{
- name: "ch-editeerder",
- useage: [:read, :write, :read_for_write],
- access: access_by_role( "ABBOrganisatiePortaalGebruiker-editeerder" ),
- graphs: [ %GraphSpec{
- graph: "http://mu.semte.ch/graphs/organisatieportaal",
- constraint: %ResourceConstraint{
- resource_types: @protected_resource_type } } ] },
- %GroupSpec{
- name: "ch-beheerder",
- useage: [:read, :write, :read_for_write],
- access: access_by_role( "ABBOrganisatiePortaalGebruiker-beheerder" ),
- graphs: [ %GraphSpec{
- graph: "http://mu.semte.ch/graphs/organisatieportaal",
- constraint: %ResourceConstraint{
- resource_types: @protected_resource_type } } ] },
%GroupSpec{
name: "public",
useage: [:read],
diff --git a/config/search/config.json b/config/search/config.json
index 78fe1ac..4954cb8 100644
--- a/config/search/config.json
+++ b/config/search/config.json
@@ -3,9 +3,124 @@
"persist_indexes": true,
"number_of_threads": 6,
"eager_indexing_groups": [
- [{ "variables": [], "name": "acmidm-lezer" }],
- [{ "variables": [], "name": "acmidm-editeerder" }],
- [{ "variables": [], "name": "acmidm-beheerder" }]
+ [
+ {
+ "variables": [],
+ "name": "acmidm-lezer"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ],
+ [
+ {
+ "variables": [],
+ "name": "acmidm-editeerder"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ],
+ [
+ {
+ "variables": [],
+ "name": "acmidm-beheerder"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ],
+ [
+ {
+ "variables": [],
+ "name": "acmidm-beheerder"
+ },
+ {
+ "variables": [],
+ "name": "acmidm-editeerder"
+ },
+ {
+ "variables": [],
+ "name": "acmidm-lezer"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ],
+ [
+ {
+ "variables": [],
+ "name": "acmidm-editeerder"
+ },
+ {
+ "variables": [],
+ "name": "acmidm-lezer"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ],
+ [
+ {
+ "variables": [],
+ "name": "acmidm-editeerder"
+ },
+ {
+ "variables": [],
+ "name": "acmidm-beheerder"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ],
+ [
+ {
+ "variables": [],
+ "name": "acmidm-lezer"
+ },
+ {
+ "variables": [],
+ "name": "acmidm-beheerder"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ]
],
"types": [
{
@@ -13,11 +128,26 @@
"on_path": "mandatories",
"rdf_type": "http://data.lblod.info/vocabularies/erediensten/EredienstMandataris",
"properties": {
- "given_name": ["http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan","http://xmlns.com/foaf/0.1/givenName"],
- "id": ["http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan","http://mu.semte.ch/vocabularies/core/uuid"],
- "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"],
+ "given_name": [
+ "http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
+ "http://xmlns.com/foaf/0.1/givenName"
+ ],
+ "id": [
+ "http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
+ "http://mu.semte.ch/vocabularies/core/uuid"
+ ],
+ "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",
@@ -62,7 +192,6 @@
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
-
"mappings": {
"properties": {
"family_name": {
@@ -89,7 +218,9 @@
}
}
},
- "organization_id": { "type": "text" },
+ "organization_id": {
+ "type": "text"
+ },
"organization_province": {
"type": "text",
"fields": {
@@ -114,7 +245,9 @@
}
}
},
- "position_id": { "type": "text" },
+ "position_id": {
+ "type": "text"
+ },
"position_name": {
"type": "text",
"fields": {
@@ -123,7 +256,9 @@
}
}
},
- "end_date": { "type": "date" }
+ "end_date": {
+ "type": "date"
+ }
}
}
},
@@ -131,13 +266,30 @@
"type": "minister",
"on_path": "ministers",
"rdf_type": "http://data.lblod.info/vocabularies/erediensten/RolBedienaar",
- "sub_types": ["http://data.lblod.info/vocabularies/contacthub/AgentInPositie"],
+ "sub_types": [
+ "http://data.lblod.info/vocabularies/contacthub/AgentInPositie"
+ ],
"properties": {
- "given_name": ["http://www.w3.org/ns/org#heldBy","http://xmlns.com/foaf/0.1/givenName"],
- "id": ["http://www.w3.org/ns/org#heldBy","http://mu.semte.ch/vocabularies/core/uuid"],
- "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"],
+ "given_name": [
+ "http://www.w3.org/ns/org#heldBy",
+ "http://xmlns.com/foaf/0.1/givenName"
+ ],
+ "id": [
+ "http://www.w3.org/ns/org#heldBy",
+ "http://mu.semte.ch/vocabularies/core/uuid"
+ ],
+ "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",
@@ -174,7 +326,6 @@
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
-
"mappings": {
"properties": {
"family_name": {
@@ -201,7 +352,9 @@
}
}
},
- "organization_id": { "type": "text" },
+ "organization_id": {
+ "type": "text"
+ },
"organization_province": {
"type": "text",
"fields": {
@@ -226,7 +379,9 @@
}
}
},
- "position_id": { "type": "text" },
+ "position_id": {
+ "type": "text"
+ },
"position_name": {
"type": "text",
"fields": {
@@ -235,92 +390,97 @@
}
}
},
- "end_date": { "type": "date" }
+ "end_date": {
+ "type": "date"
+ }
}
}
},
{
- "type" : "person",
- "composite_types" : ["minister", "mandatory"],
- "on_path" : "people",
- "properties" : [
- {
- "name" : "given_name",
- "mappings" : {
- "minister" : "given_name",
- "mandatory" : "given_name"
- }
- },
- {
- "name" : "id",
- "mappings" : {
- "minister" : "id",
- "mandatory" : "id"
- }
- },
- {
- "name" : "family_name",
- "mappings" : {
- "minister" : "family_name",
- "mandatory" : "family_name"
- }
- },
- {
- "name" : "first_name_used",
- "mappings" : {
- "minister" : "first_name_used",
- "mandatory" : "first_name_used"
- }
- },
- {
- "name" : "end_date",
- "mappings" : {
- "minister" : "end_date",
- "mandatory" : "end_date"
- }
- },
- {
- "name" : "organization_id",
- "mappings" : {
- "minister" : "organization_id",
- "mandatory" : "organization_id"
- }
- },
- {
- "name" : "organization_name",
- "mappings" : {
- "minister" : "organization_name",
- "mandatory" : "organization_name"
- }
- },
- {
- "name" : "organization_municipality",
- "mappings" : {
- "minister" : "organization_municipality",
- "mandatory" : "organization_municipality"
- }
- },
- {
- "name" : "organization_province",
- "mappings" : {
- "minister" : "organization_province",
- "mandatory" : "organization_province"
- }
- },
- {
- "name" : "position_id",
- "mappings" : {
- "minister" : "position_id",
- "mandatory" : "position_id"
- }
- },
- {
- "name" : "position_name",
- "mappings" : {
- "minister" : "position_name",
- "mandatory" : "position_name"
- }
+ "type": "person",
+ "composite_types": [
+ "minister",
+ "mandatory"
+ ],
+ "on_path": "people",
+ "properties": [
+ {
+ "name": "given_name",
+ "mappings": {
+ "minister": "given_name",
+ "mandatory": "given_name"
}
+ },
+ {
+ "name": "id",
+ "mappings": {
+ "minister": "id",
+ "mandatory": "id"
+ }
+ },
+ {
+ "name": "family_name",
+ "mappings": {
+ "minister": "family_name",
+ "mandatory": "family_name"
+ }
+ },
+ {
+ "name": "first_name_used",
+ "mappings": {
+ "minister": "first_name_used",
+ "mandatory": "first_name_used"
+ }
+ },
+ {
+ "name": "end_date",
+ "mappings": {
+ "minister": "end_date",
+ "mandatory": "end_date"
+ }
+ },
+ {
+ "name": "organization_id",
+ "mappings": {
+ "minister": "organization_id",
+ "mandatory": "organization_id"
+ }
+ },
+ {
+ "name": "organization_name",
+ "mappings": {
+ "minister": "organization_name",
+ "mandatory": "organization_name"
+ }
+ },
+ {
+ "name": "organization_municipality",
+ "mappings": {
+ "minister": "organization_municipality",
+ "mandatory": "organization_municipality"
+ }
+ },
+ {
+ "name": "organization_province",
+ "mappings": {
+ "minister": "organization_province",
+ "mandatory": "organization_province"
+ }
+ },
+ {
+ "name": "position_id",
+ "mappings": {
+ "minister": "position_id",
+ "mandatory": "position_id"
+ }
+ },
+ {
+ "name": "position_name",
+ "mappings": {
+ "minister": "position_name",
+ "mandatory": "position_name"
+ }
+ }
],
"mappings": {
"properties": {
@@ -348,7 +508,9 @@
}
}
},
- "organization_id": { "type": "text" },
+ "organization_id": {
+ "type": "text"
+ },
"organization_province": {
"type": "text",
"fields": {
@@ -373,7 +535,9 @@
}
}
},
- "position_id": { "type": "text" },
+ "position_id": {
+ "type": "text"
+ },
"position_name": {
"type": "text",
"fields": {
@@ -382,10 +546,12 @@
}
}
},
- "end_date": { "type": "date" }
+ "end_date": {
+ "type": "date"
+ }
}
}
- },
+ },
{
"type": "unit",
"on_path": "units",
@@ -433,8 +599,12 @@
},
"mappings": {
"properties": {
- "classification_id": { "type": "text" },
- "recognized_worship_type_id": { "type": "text" },
+ "classification_id": {
+ "type": "text"
+ },
+ "recognized_worship_type_id": {
+ "type": "text"
+ },
"name": {
"type": "text",
"fields": {
diff --git a/config/search/dev/config.json b/config/search/dev/config.json
new file mode 100644
index 0000000..38571e2
--- /dev/null
+++ b/config/search/dev/config.json
@@ -0,0 +1,584 @@
+{
+ "automatic_index_updates": true,
+ "persist_indexes": true,
+ "number_of_threads": 6,
+ "eager_indexing_groups": [
+ [
+ {
+ "variables": [],
+ "name": "acmidm-lezer"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ],
+ [
+ {
+ "variables": [],
+ "name": "acmidm-editeerder"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ],
+ [
+ {
+ "variables": [],
+ "name": "acmidm-beheerder"
+ },
+ {
+ "variables": [],
+ "name": "clean"
+ },
+ {
+ "variables": [],
+ "name": "public"
+ }
+ ]
+ ],
+ "types": [
+ {
+ "type": "mandatory",
+ "on_path": "mandatories",
+ "rdf_type": "http://data.lblod.info/vocabularies/erediensten/EredienstMandataris",
+ "properties": {
+ "given_name": [
+ "http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
+ "http://xmlns.com/foaf/0.1/givenName"
+ ],
+ "id": [
+ "http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan",
+ "http://mu.semte.ch/vocabularies/core/uuid"
+ ],
+ "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_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"
+ }
+ }
+ },
+ "id": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "given_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_id": {
+ "type": "text"
+ },
+ "organization_province": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_municipality": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "position_id": {
+ "type": "text"
+ },
+ "position_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "end_date": {
+ "type": "date"
+ }
+ }
+ }
+ },
+ {
+ "type": "minister",
+ "on_path": "ministers",
+ "rdf_type": "http://data.lblod.info/vocabularies/erediensten/RolBedienaar",
+ "sub_types": [
+ "http://data.lblod.info/vocabularies/contacthub/AgentInPositie"
+ ],
+ "properties": {
+ "given_name": [
+ "http://www.w3.org/ns/org#heldBy",
+ "http://xmlns.com/foaf/0.1/givenName"
+ ],
+ "id": [
+ "http://www.w3.org/ns/org#heldBy",
+ "http://mu.semte.ch/vocabularies/core/uuid"
+ ],
+ "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_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"
+ }
+ }
+ },
+ "id": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "given_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_id": {
+ "type": "text"
+ },
+ "organization_province": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_municipality": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "position_id": {
+ "type": "text"
+ },
+ "position_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "end_date": {
+ "type": "date"
+ }
+ }
+ }
+ },
+ {
+ "type": "person",
+ "composite_types": [
+ "minister",
+ "mandatory"
+ ],
+ "on_path": "people",
+ "properties": [
+ {
+ "name": "given_name",
+ "mappings": {
+ "minister": "given_name",
+ "mandatory": "given_name"
+ }
+ },
+ {
+ "name": "id",
+ "mappings": {
+ "minister": "id",
+ "mandatory": "id"
+ }
+ },
+ {
+ "name": "family_name",
+ "mappings": {
+ "minister": "family_name",
+ "mandatory": "family_name"
+ }
+ },
+ {
+ "name": "first_name_used",
+ "mappings": {
+ "minister": "first_name_used",
+ "mandatory": "first_name_used"
+ }
+ },
+ {
+ "name": "end_date",
+ "mappings": {
+ "minister": "end_date",
+ "mandatory": "end_date"
+ }
+ },
+ {
+ "name": "organization_id",
+ "mappings": {
+ "minister": "organization_id",
+ "mandatory": "organization_id"
+ }
+ },
+ {
+ "name": "organization_name",
+ "mappings": {
+ "minister": "organization_name",
+ "mandatory": "organization_name"
+ }
+ },
+ {
+ "name": "organization_municipality",
+ "mappings": {
+ "minister": "organization_municipality",
+ "mandatory": "organization_municipality"
+ }
+ },
+ {
+ "name": "organization_province",
+ "mappings": {
+ "minister": "organization_province",
+ "mandatory": "organization_province"
+ }
+ },
+ {
+ "name": "position_id",
+ "mappings": {
+ "minister": "position_id",
+ "mandatory": "position_id"
+ }
+ },
+ {
+ "name": "position_name",
+ "mappings": {
+ "minister": "position_name",
+ "mandatory": "position_name"
+ }
+ }
+ ],
+ "mappings": {
+ "properties": {
+ "family_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "id": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "given_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_id": {
+ "type": "text"
+ },
+ "organization_province": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "organization_municipality": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "position_id": {
+ "type": "text"
+ },
+ "position_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "end_date": {
+ "type": "date"
+ }
+ }
+ }
+ },
+ {
+ "type": "unit",
+ "on_path": "units",
+ "rdf_type": "http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid",
+ "sub_types": [
+ "http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst",
+ "http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst"
+ ],
+ "properties": {
+ "name": "http://www.w3.org/2004/02/skos/core#prefLabel",
+ "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"
+ ]
+ },
+ "mappings": {
+ "properties": {
+ "classification_id": {
+ "type": "text"
+ },
+ "recognized_worship_type_id": {
+ "type": "text"
+ },
+ "name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "classification_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "status": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "recognized_worship_type_name": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "province": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ },
+ "municipality": {
+ "type": "text",
+ "fields": {
+ "field": {
+ "type": "keyword"
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
index 61f384e..26a56be 100644
--- a/docker-compose.dev.yml
+++ b/docker-compose.dev.yml
@@ -61,6 +61,8 @@ services:
restart: "no"
search:
restart: "no"
+ volumes:
+ - ./config/search/dev:/config
elasticsearch:
restart: "no"
file: