changed title structure from field to object for multiple language handling

This commit is contained in:
Enrico Ottonello 2021-10-18 18:06:40 +02:00
parent 0f7e7de918
commit e9430ab460
1 changed files with 9 additions and 2 deletions

View File

@ -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": { "mappings": {
"dynamic": false, "dynamic": false,
@ -307,7 +307,14 @@ curl -X PUT "http://elastic-test.ariadne.d4science.org:9200/ariadneplus?pretty"
} }
}, },
"title": { "title": {
"type": "text" "properties": {
"text": {
"type": "text"
},
"language": {
"type": "text"
}
}
}, },
"wasCreated": { "wasCreated": {
"type": "date", "type": "date",