From e9430ab4600b8d837262bbf0d7c9f269109ede9b Mon Sep 17 00:00:00 2001 From: Enrico Ottonello Date: Mon, 18 Oct 2021 18:06:40 +0200 Subject: [PATCH] changed title structure from field to object for multiple language handling --- .../resources/es/schemaAriadneplusElasticsearch.curl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dnet-ariadneplus/src/main/resources/es/schemaAriadneplusElasticsearch.curl b/dnet-ariadneplus/src/main/resources/es/schemaAriadneplusElasticsearch.curl index 1721fba..99a0e05 100644 --- a/dnet-ariadneplus/src/main/resources/es/schemaAriadneplusElasticsearch.curl +++ b/dnet-ariadneplus/src/main/resources/es/schemaAriadneplusElasticsearch.curl @@ -1,4 +1,4 @@ -curl -X PUT "http://elastic-test.ariadne.d4science.org:9200/ariadneplus?pretty" -H 'Content-Type: application/json' -d ' +curl -X PUT "http://elastic-test.ariadne.d4science.org:9200/ariadneplus_test?pretty" -H 'Content-Type: application/json' -d ' { "mappings": { "dynamic": false, @@ -307,7 +307,14 @@ curl -X PUT "http://elastic-test.ariadne.d4science.org:9200/ariadneplus?pretty" } }, "title": { - "type": "text" + "properties": { + "text": { + "type": "text" + }, + "language": { + "type": "text" + } + } }, "wasCreated": { "type": "date",