{
"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" }
        }
    }
}
}