aboutsummaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/container_schema.json
blob: 5cd85b04364f232c3ec34a68248a1b82d8a1d29e (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"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" ]
                }
            },
            "normalizer": {
                "default": {
                    "type": "custom",
                    "char_filter": [],
                    "filter": ["lowercase"]
                },
                "caseSensitive": {
                    "type": "custom",
                    "char_filter": [],
                    "filter": []
                }
            }
        }
    }
},
"mappings": {
    "container": {
        "properties": {
            "ident":          { "type": "keyword", "normalizer": "default", "doc_values": false },
            "state":          { "type": "keyword", "normalizer": "default" },
            "revision":       { "type": "keyword", "normalizer": "default", "doc_values": false },
            "name":           { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "biblio" },
            "original_name":  { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "biblio" },
            "publisher":      { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "biblio" },
            "abbrev":         { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "biblio" },
            "aliases":        { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "copy_to": "biblio" },
            "publisher_type": { "type": "keyword", "normalizer": "default" },
            "container_type": { "type": "keyword", "normalizer": "default" },
            "issnl":          { "type": "keyword", "normalizer": "default" },
            "issns":          { "type": "keyword", "normalizer": "default" },
            "wikidata_qid":   { "type": "keyword", "normalizer": "default" },
            "country_code":   { "type": "keyword", "normalizer": "default" },
            "region":         { "type": "keyword", "normalizer": "default" },
            "discipline":     { "type": "keyword", "normalizer": "default" },
            "languages":      { "type": "keyword", "normalizer": "default" },
            "mimetypes":      { "type": "keyword", "normalizer": "default" },
            "first_year":     { "type": "integer" },
            "last_year":      { "type": "integer" },


            "biblio":         { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },

            "in_doaj":              { "type": "boolean" },
            "in_road":              { "type": "boolean" },
            "is_oa":                { "type": "boolean" },
            "is_longtail_oa":       { "type": "boolean" },
            "any_kbart":            { "type": "boolean" },
            "any_jstor":            { "type": "boolean" },
            "any_ia_sim":           { "type": "boolean" },
            "sherpa_romeo_color":   { "type": "keyword", "normalizer": "default" },

            "releases_total": { "type": "integer" },
            "releases_kbart": { "type": "integer" },
            "releases_ia":    { "type": "integer" },
            "releases_ia_sim":          { "type": "integer" },
            "releases_shadows":         { "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" },
            "issn":           { "type": "alias", "path": "issns" },
            "oa":             { "type": "alias", "path": "is_oa" },
            "longtail":       { "type": "alias", "path": "is_longtail_oa" }
        }
    }
}
}