added lowercase function for derivedSubject.prefLabe, nativeSubject.prefLabel

This commit is contained in:
Enrico Ottonello 2021-10-19 16:03:38 +02:00
parent e9430ab460
commit 788fc3b734
1 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,15 @@
curl -X PUT "http://elastic-test.ariadne.d4science.org:9200/ariadneplus_test?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 '
{ {
"settings": {
"analysis": {
"normalizer": {
"useLowercase": {
"type": "custom",
"filter": [ "lowercase" ]
}
}
}
},
"mappings": { "mappings": {
"dynamic": false, "dynamic": false,
"properties": { "properties": {
@ -9,6 +19,7 @@ curl -X PUT "http://elastic-test.ariadne.d4science.org:9200/ariadneplus_test?pre
"type": "text", "type": "text",
"fields": { "fields": {
"raw": { "raw": {
"normalizer":"useLowercase",
"type": "keyword" "type": "keyword"
} }
} }
@ -129,6 +140,7 @@ curl -X PUT "http://elastic-test.ariadne.d4science.org:9200/ariadneplus_test?pre
"type": "text", "type": "text",
"fields": { "fields": {
"raw": { "raw": {
"normalizer":"useLowercase",
"type": "keyword" "type": "keyword"
} }
} }
@ -278,6 +290,7 @@ curl -X PUT "http://elastic-test.ariadne.d4science.org:9200/ariadneplus_test?pre
"type": "text", "type": "text",
"fields": { "fields": {
"raw": { "raw": {
"normalizer":"useLowercase",
"type": "keyword" "type": "keyword"
} }
} }