aboutsummaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/container_schema.json
blob: 83791ab8772c2fdd9d4637d3d3cd9d63edbdd40e (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
63
64
65
66
67
68
69
70
71
72
73
74
{
"settings": {
    "index": {
        "analysis": {
            "analyzer": {
                "default": {
                    "type": "custom",
                    "tokenizer": "standard",
                    "filter": [ "lowercase", "asciifolding" ]
                },
                "textIcu": {
                    "type": "custom",
                    "tokenizer": "icu_tokenizer",
                    "char_filter": [ "icu_normalizer" ],
                    "filter": [ "icu_folding" ]
                },
                "textIcuSearch": {
                    "type": "custom",
                    "tokenizer": "icu_tokenizer",
                    "char_filter": [ "icu_normalizer" ],
                    "filter": [ "icu_folding" ]
                }
            }
        }
    }
},
"mappings": {
    "container": {
        "properties": {
            "ident":          { "type": "keyword" },
            "state":          { "type": "keyword" },
            "revision":       { "type": "keyword" },
            "name":           { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "publisher":      { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "container_type": { "type": "keyword" },
            "wikidata_qid":   { "type": "keyword" },
            "issnl":          { "type": "keyword" },
            "region":         { "type": "keyword" },
            "nation":         { "type": "keyword" },
            "discipline":     { "type": "keyword" },
            "languages":      { "type": "keyword" },
            "mimetypes":      { "type": "keyword" },
            "first_year":     { "type": "integer" },
            "last_year":      { "type": "integer" },

            "in_doaj":        { "type": "boolean" },
            "in_road":        { "type": "boolean" },
            "in_doi":         { "type": "boolean" },
            "in_doaj_works":  { "type": "boolean" },
            "in_sherpa_romeo":{ "type": "boolean" },
            "is_oa":          { "type": "boolean" },
            "is_longtail_oa": { "type": "boolean" },
            "any_kbart":      { "type": "boolean" },
            "any_jstor":      { "type": "boolean" },
            "any_sim":        { "type": "boolean" },
            "ia_homepage_status":       { "type": "boolean" },

            "releases_total": { "type": "integer" },
            "releases_kbart": { "type": "integer" },
            "releases_ia":    { "type": "integer" },
            "releases_sim":   { "type": "integer" },
            "releases_shadow":          { "type": "integer" },
            "releases_any_file":        { "type": "integer" },
            "releases_any_fileset":     { "type": "integer" },
            "releases_any_webcapture":  { "type": "integer" },

            "year":           { "type": "alias", "path": "first_year" },
            "type":           { "type": "alias", "path": "container_type" },
            "oa":             { "type": "alias", "path": "is_oa" },
            "longtail":       { "type": "alias", "path": "is_longtail_oa" }
        }
    }
}
}