A Research Data Repository Service for Managing Metadata Documents based on JSON or XML.
If there occur some errors during mapping it might be neccessary to customize the mapping for a specific index.
Take a Single Snapshot as described below.
curl -X GET http://localhost:9200/YOUR_INDEX/_mapping?pretty > YOUR_INDEX_mapping.json
curl -X DELETE http://localhost:9200/YOUR_INDEX
Unfortunately you have to remove the top level element (should be ‘YOUR_INDEX’) from the file. Example:
YOUR_INDEX_mapping.json:
{
"YOUR_INDEX" : {
"mappings" : {
[...]
}
}
}
-->
mapping.json:
{
"mappings" : {
[...]
}
}
Save new file as ‘mapping.json’. If you have ‘jq’ installed this can be easily done with
cat YOUR_INDEX_mapping.json | jq .YOUR_INDEX > mapping.json
curl -X PUT http://localhost:9200/YOUR_INDEX -H 'Content-Type: application/json' --data '@mapping.json'
systemctl stop metaStore
bash run.sh --reindex --indices YOUR_INDEX
[...]
Reindexing may take a while depending on the number of entries. (As the script runs not in background you should interrupt the script afte indexing has finished and start the daemon again.
« PREVIOUS | NEXT » |
---|---|