summaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/changelog_schema.json
blob: d958fed98648db47b88852275efaa70ceeac2609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"settings": {
    "index": {
        "analysis": {
            "analyzer": {
                "default": {
                    "type": "custom",
                    "tokenizer": "standard",
                    "filter": [ "lowercase", "asciifolding" ]
                }
            },
            "normalizer": {
                "default": {
                    "type": "custom",
                    "char_filter": [],
                    "filter": ["lowercase"]
                },
                "caseSensitive": {
                    "type": "custom",
                    "char_filter": [],
                    "filter": []
                }
            }
        }
    }
},
"mappings": {
    "changelog": {
        "properties": {
            "index":            { "type": "integer" },
            "editgroup_id":     { "type": "keyword", "normalizer": "default", "doc_values": false },
            "timestamp":        { "type": "date" },
            "editor_id":        { "type": "keyword", "normalizer": "default" },
            "username":         { "type": "keyword", "normalize": "caseSensitive" },
            "is_bot":           { "type": "boolean" },
            "is_admin":         { "type": "boolean" },
            "agent":            { "type": "keyword", "normalize": "caseSensitive" },

            "containers":       { "type": "integer" },
            "new_containers":   { "type": "integer" },
            "creators":         { "type": "integer" },
            "new_creators":     { "type": "integer" },
            "files":            { "type": "integer" },
            "new_files":        { "type": "integer" },
            "filessets":        { "type": "integer" },
            "new_filessets":    { "type": "integer" },
            "webcaptures":      { "type": "integer" },
            "new_webcaptures":  { "type": "integer" },
            "releases":         { "type": "integer" },
            "new_releases":     { "type": "integer" },
            "works":            { "type": "integer" },
            "new_works":        { "type": "integer" },

            "created":          { "type": "integer" },
            "updated":          { "type": "integer" },
            "deleted":          { "type": "integer" },
            "total":            { "type": "integer" }
        }
    }
}
}