aboutsummaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/container_schema.json
blob: 3be261a24e6ad9eb6d6b7ea15bb9359473b5a529 (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
{
"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", "doc_values": false },
            "state":          { "type": "keyword" },
            "revision":       { "type": "keyword", "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" },
            "container_type": { "type": "keyword" },
            "issnl":          { "type": "keyword" },
            "issns":          { "type": "keyword" },
            "wikidata_qid":   { "type": "keyword" },
            "country":        { "type": "keyword" },
            "region":         { "type": "keyword" },
            "discipline":     { "type": "keyword" },
            "languages":      { "type": "keyword" },
            "mimetypes":      { "type": "keyword" },
            "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" },

            "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" },
            "issn":           { "type": "alias", "path": "issns" },
            "oa":             { "type": "alias", "path": "is_oa" },
            "longtail":       { "type": "alias", "path": "is_longtail_oa" }
        }
    }
}
}