summaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/file_schema.json
blob: 4635e469308f8a186caf28dd026c815b7cd924e9 (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
62
{
"settings": {
    "index": {
        "number_of_shards": 6,
        "number_of_replicas": 0,
        "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": {
    "_doc": {
        "properties": {
            "ident":            { "type": "keyword", "normalizer": "default", "doc_values": false },
            "state":            { "type": "keyword", "normalizer": "default" },
            "revision":         { "type": "keyword", "normalizer": "default", "doc_values": false },

            "release_ids":      { "type": "keyword", "normalizer": "default", "doc_values": false },
            "release_count":    { "type": "integer" },
            "mimetype":         { "type": "keyword", "normalizer": "default" },
            "size_bytes":       { "type": "integer" },
            "sha1":             { "type": "keyword", "normalizer": "default", "doc_values": false },
            "sha256":           { "type": "keyword", "normalizer": "default", "doc_values": false },
            "md5":              { "type": "keyword", "normalizer": "default", "doc_values": false },

            "domains":          { "type": "keyword", "normalizer": "default" },
            "hosts":            { "type": "keyword", "normalizer": "default" },
            "rels":             { "type": "keyword", "normalizer": "default" },
            "in_ia":            { "type": "boolean" },
            "in_ia_petabox":    { "type": "boolean" },
            "best_url":         { "type": "keyword", "normalizer": "default" },

            "release_id":       { "type": "alias", "path": "release_ids" },
            "sha1hex":          { "type": "alias", "path": "sha1" },
            "sha256hex":        { "type": "alias", "path": "sha256" },
            "md5hex":           { "type": "alias", "path": "md5" },
            "size":             { "type": "alias", "path": "size_bytes" },
            "domain":           { "type": "alias", "path": "domains" },
            "host":             { "type": "alias", "path": "hosts" },
            "rel":              { "type": "alias", "path": "rels" }
        }
    }
}
}