From 4ad2442e47b0bf730fdb535c609471be04a7aa68 Mon Sep 17 00:00:00 2001 From: Fatimah Zulfiqar Date: Fri, 29 Nov 2024 13:23:14 +0100 Subject: [PATCH] mappings: added identifiers in orgs --- .../os-v1/communities/communities-v2.0.0.json | 21 ++++++++++++++----- .../os-v2/communities/communities-v2.0.0.json | 21 ++++++++++++++----- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/invenio_communities/communities/records/mappings/os-v1/communities/communities-v2.0.0.json b/invenio_communities/communities/records/mappings/os-v1/communities/communities-v2.0.0.json index 656559e5f..ea559d5b7 100644 --- a/invenio_communities/communities/records/mappings/os-v1/communities/communities-v2.0.0.json +++ b/invenio_communities/communities/records/mappings/os-v1/communities/communities-v2.0.0.json @@ -13,11 +13,7 @@ "tokenizer": "standard", "type": "custom", "char_filter": ["strip_special_chars"], - "filter": [ - "lowercase", - "asciifolding", - "edgegrams" - ] + "filter": ["lowercase", "asciifolding", "edgegrams"] } }, "filter": { @@ -209,6 +205,21 @@ }, "name": { "type": "text" + }, + "identifiers": { + "properties": { + "identifier": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword" + } + } + }, + "scheme": { + "type": "keyword" + } + } } } }, diff --git a/invenio_communities/communities/records/mappings/os-v2/communities/communities-v2.0.0.json b/invenio_communities/communities/records/mappings/os-v2/communities/communities-v2.0.0.json index 656559e5f..ea559d5b7 100644 --- a/invenio_communities/communities/records/mappings/os-v2/communities/communities-v2.0.0.json +++ b/invenio_communities/communities/records/mappings/os-v2/communities/communities-v2.0.0.json @@ -13,11 +13,7 @@ "tokenizer": "standard", "type": "custom", "char_filter": ["strip_special_chars"], - "filter": [ - "lowercase", - "asciifolding", - "edgegrams" - ] + "filter": ["lowercase", "asciifolding", "edgegrams"] } }, "filter": { @@ -209,6 +205,21 @@ }, "name": { "type": "text" + }, + "identifiers": { + "properties": { + "identifier": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword" + } + } + }, + "scheme": { + "type": "keyword" + } + } } } },