create.index.json.tool.txt 930 Bytes
Newer Older
1
curl -XPUT "http://localhost:8080/oai-v1" -H 'Content-Type: application/json' -d'
2
curl -XPUT "http://mb-es1.memobase.unibas.ch:8080/oai-v1" -H 'Content-Type: application/json' -d'
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
    "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"},
19
            "institution": {"type": "keyword"},
20
21
22
23
24
25
26
27
28
29
30
31
            "lastUpdatedDate": {
                "type": "keyword",
                "fields": {
                    "sort": {"type": "date"}
                }
            }
        }
    }
}
'

Frage: warum funktioniert index pattern nicht mit curl command