aboutsummaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/release_schema.json
blob: c9b773013c24af1239c785691782079c1253487a (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
{
"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" },
            "revision":       { "type": "keyword" },
            "title":          { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "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": "container_is_oa" },
            "longtail":       { "type": "alias", "path": "container_is_longtail_oa" },
            "release_date":   { "type": "date" },
            "release_year":   { "type": "integer" },
            "release_type":   { "type": "keyword" },
            "release_status": { "type": "keyword" },
            "language": { "type": "keyword" },
            "doi":      { "type": "keyword" },
            "pmid":     { "type": "keyword" },
            "pmcid":    { "type": "keyword" },
            "isbn13":   { "type": "keyword" },
            "core_id":      { "type": "keyword" },
            "wikidata_qid": { "type": "keyword" },
            "publisher":                { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "container_name":           { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "container_issnl":          { "type": "keyword" },
            "container_is_oa":          { "type": "boolean" },
            "container_is_longtail_oa": { "type": "boolean" },
            "contrib_count":        { "type": "integer" },
            "contrib_names":  { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
            "ref_count":            { "type": "integer" },
            "file_count":           { "type": "integer" },
            "file_pdf_url":         { "type": "keyword" },
            "file_in_webarchive":   { "type": "boolean" },
            "file_in_ia":           { "type": "boolean" },
            "any_abstract":         { "type": "boolean" },
            "is_kept":              { "type": "boolean" },
            "in_shadow":            { "type": "boolean" }
        }
    }
}
}