Commit 95de4f67 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Update rico2edm mappings / templates

parent a6b941d3
##es index description for OAI
##OAI Index Field Description
### id
document identifier
......
......@@ -22,18 +22,27 @@ PUT _template/<nameOfTemplate>-template
```
### CURL
Create a tunnel first:
```bash
ssh -L 8080:mb-es1:8080 swissbib@mb-es1.memobase.unibas.ch
```
#### Documents (Records & Instantiations)
```bash
curl -X PUT "localhost:8080/_template/documents-template" -H 'Content-Type: application/json' -d @documents.template.json
```
#### Institutions
```bash
curl -X PUT "localhost:8080/_template/institutions-template" -H 'Content-Type: application/json' -d @institutions.template.json
```
#### Record Sets
```bash
curl -X PUT "localhost:8080/_template/record-sets-template" -H 'Content-Type: application/json' -d @record-sets.template.json
```
#### Reports
```bash
curl -X PUT "localhost:8080/_template/reports-template" -H 'Content-Type: application/json' -d @reports.template.json
```
#### RICO to EDM
```bash
curl -X PUT "localhost:8080/_template/oai-template" -H 'Content-Type: application/json' -d @rico2edm.template.json
```
\ No newline at end of file
curl -XPUT "http://localhost:8080/oai-v1" -H 'Content-Type: application/json' -d'
curl -XPUT "http://mb-es1.memobase.unibas.ch:8080/oai-v1" -H 'Content-Type: application/json' -d'
{
"settings": {
"number_of_replicas": 1,
"number_of_shards": 3
},
"mappings": {
"date_detection": false,
"properties": {
"id": {"type": "keyword"},
"document": {
"type": "keyword",
"index": false
},
"format": {"type": "keyword"},
"published": {"type": "boolean"},
"recordset": {"type": "keyword"},
"institution": {"type": "keyword"},
"lastUpdatedDate": {
"type": "keyword",
"fields": {
"sort": {"type": "date"}
}
}
}
}
}
'
Frage: warum funktioniert index pattern nicht mit curl command
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment