aboutsummaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/release_schema.json
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-22 17:30:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-22 17:30:21 -0700
commit2eedc871a71e83b126f98ca5915a463a8cd50ccc (patch)
tree4864e3aeca4673ff2bbea53e157d9de853e33e98 /extra/elasticsearch/release_schema.json
parent526fe297375b8e5efaffdcb936e6d1f0217d5b1a (diff)
downloadfatcat-2eedc871a71e83b126f98ca5915a463a8cd50ccc.tar.gz
fatcat-2eedc871a71e83b126f98ca5915a463a8cd50ccc.zip
update elastic schema and transform
Diffstat (limited to 'extra/elasticsearch/release_schema.json')
-rw-r--r--extra/elasticsearch/release_schema.json52
1 files changed, 30 insertions, 22 deletions
diff --git a/extra/elasticsearch/release_schema.json b/extra/elasticsearch/release_schema.json
index 89359de4..22177c42 100644
--- a/extra/elasticsearch/release_schema.json
+++ b/extra/elasticsearch/release_schema.json
@@ -25,35 +25,43 @@
}
},
"mappings": {
- "work": {
- "_all": { "enabled": true },
+ "release": {
"properties": {
- "ident": { "type": "keyword", "include_in_all": false },
- "revision": { "type": "keyword", "include_in_all": false },
+ "ident": { "type": "keyword" },
+ "revision": { "type": "keyword" },
"title": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
- "author_names": { "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" },
+ "issn": { "type": "alias", "path": "container_issnl" },
+ "oa": { "type": "alias", "path": "container_is_oa" },
+ "kept": { "type": "alias", "path": "container_is_kept" },
+ "longtail": { "type": "alias", "path": "container_is_longtail_oa" },
"release_date": { "type": "date" },
- "release_type": { "type": "keyword", "include_in_all": false },
- "release_status": { "type": "keyword", "include_in_all": false },
- "language": { "type": "keyword", "include_in_all": false },
+ "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", "include_in_all": false },
- "wikidata_qid": { "type": "keyword", "include_in_all": false },
- "publisher": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch", "include_in_all": false },
- "container_title": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" },
- "container_issnl": { "type": "keyword", "include_in_all": false },
- "container_is_oa": { "type": "boolean", "include_in_all": false },
- "container_is_kept": { "type": "boolean", "include_in_all": false },
- "container_is_longtail_oa": { "type": "booloean", "include_in_all": false },
- "file_count": { "type": "number", "include_in_all": false },
- "file_pdf_url": { "type": "keyword", "include_in_all": false },
- "file_in_webarchive": { "type": "boolean", "include_in_all": false },
- "file_in_ia": { "type": "boolean", "include_in_all": false },
- "any_abstract": { "type": "boolean", "include_in_all": false },
- "in_shadow": { "type": "boolean", "include_in_all": false }
+ "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" }
}
}
}