aboutsummaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/release_schema.json
blob: 8502606092a1788be0ea28a247159cfb4c81b51c (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
93
94
95
96
97
{
"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": {
    "release": {
        "properties": {
            "ident":          { "type": "keyword" },
            "state":          { "type": "keyword" },
            "revision":       { "type": "keyword" },
            "work_id":        { "type": "keyword" },
            "title":          { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "subtitle":       { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "original_title": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "release_date":   { "type": "date" },
            "release_year":   { "type": "integer" },
            "release_type":   { "type": "keyword" },
            "release_stage":  { "type": "keyword" },
            "withdrawn_status": { "type": "keyword" },
            "language":       { "type": "keyword" },
            "doi":            { "type": "keyword" },
            "pmid":           { "type": "keyword" },
            "pmcid":          { "type": "keyword" },
            "isbn13":         { "type": "keyword" },
            "wikidata_qid":   { "type": "keyword" },
            "core_id":        { "type": "keyword" },
            "axiv_id":        { "type": "keyword" },
            "jstor_id":       { "type": "keyword" },
            "ark_id":         { "type": "keyword" },
            "mag_id":         { "type": "keyword" },
            "license":        { "type": "keyword" },
            "publisher":            { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "container_name":       { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "container_id":         { "type": "keyword" },
            "container_issnl":      { "type": "keyword" },
            "container_type":       { "type": "keyword" },
            "contrib_count":        { "type": "integer" },
            "contrib_names":        { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "creator_ids":          { "type": "keyword" },
            "ref_count":            { "type": "integer" },
            "ref_linked_count":     { "type": "integer" },
            "file_count":           { "type": "integer" },
            "fileset_count":        { "type": "integer" },
            "webcapture_count":     { "type": "integer" },
            "any_abstract":         { "type": "boolean" },

            "best_pdf_url":         { "type": "keyword" },
            "ia_pdf_url":           { "type": "keyword" },
            "is_oa":                { "type": "boolean" },
            "is_longtail_oa":       { "type": "boolean" },
            "is_preserved":         { "type": "boolean" },
            "in_kbart":             { "type": "boolean" },
            "in_jstor":             { "type": "boolean" },
            "in_dweb":              { "type": "boolean" },
            "in_web":               { "type": "boolean" },
            "in_ia":                { "type": "boolean" },
            "in_ia_sim":            { "type": "boolean" },
            "in_shadows":           { "type": "boolean" },
            "is_superceded":        { "type": "boolean" },

            "author":         { "type": "alias", "path": "contrib_names" },
            "journal":        { "type": "alias", "path": "container_name" },
            "date":           { "type": "alias", "path": "release_date" },
            "year":           { "type": "alias", "path": "release_year" },
            "issn":           { "type": "alias", "path": "container_issnl" },
            "oa":             { "type": "alias", "path": "is_oa" },
            "longtail":       { "type": "alias", "path": "is_longtail_oa" },
            "lang":           { "type": "alias", "path": "language" },
            "file_pdf_url":   { "type": "alias", "path": "best_pdf_url" },
            "release_status": { "type": "alias", "path": "release_stage" },
            "is_kept":        { "type": "alias", "path": "in_kbart" }
        }
    }
}
}