Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
utilities
Import Process CLI
Commits
a6b941d3
Commit
a6b941d3
authored
Mar 11, 2021
by
Günter Hipler
Browse files
index definition files for oai-v1
@jonas: how to integrate this into your toolbox
parent
af79d44e
Changes
3
Hide whitespace changes
Inline
Side-by-side
elastic-search-mappings/rico2edm.create.index.json.tool.txt
0 → 100644
View file @
a6b941d3
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
elastic-search-mappings/rico2edm.es.index.description.md
0 → 100644
View file @
a6b941d3
##es index description for OAI
### id
document identifier
### document
complete record delivered by the OAI API - as starter for memobase only Europeana EDM format
### format
label for the format stored in the document field (for europeana edm)
could be used for oai set purposes
### published
[true|false]
indicator if document should be delivered (harvested) by the OAI API
### recordset
the data the document is part of - (Bestand) don't know if we use this for the API at the moment
### institution
institution the data belongs to
### lastUpdatedDate
timestamp necessary for harvesting (from | until)
elastic-search-mappings/rico2edm.es.mappings.json
0 → 100644
View file @
a6b941d3
{
"index_patterns"
:
[
"oai*"
],
"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"
},
"lastUpdatedDate"
:
{
"type"
:
"keyword"
,
"fields"
:
{
"sort"
:
{
"type"
:
"date"
}
}
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment