From 2c51bda308cb6b2dad11987efec09e36d465b2ce Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 26 Mar 2021 23:07:16 +0100 Subject: add es draft schema for references --- extra/elasticsearch/fatcat_ref.json | 106 ++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 extra/elasticsearch/fatcat_ref.json (limited to 'extra') diff --git a/extra/elasticsearch/fatcat_ref.json b/extra/elasticsearch/fatcat_ref.json new file mode 100644 index 00000000..b82ce93b --- /dev/null +++ b/extra/elasticsearch/fatcat_ref.json @@ -0,0 +1,106 @@ +{ + "settings": { + "index": { + "number_of_shards": 12, + "number_of_replicas": 0, + "analysis": { + "normalizer": { + "default": { + "type": "custom", + "char_filter": [], + "filter": [ + "lowercase" + ] + }, + "caseSensitive": { + "type": "custom", + "char_filter": [], + "filter": [] + } + } + } + } + }, + "mappings": { + "properties": { + "indexed_ts": { + "type": "date" + }, + "source_release_ident": { + "type": "keyword", + "normalizer": "default" + }, + "source_work_ident": { + "type": "keyword", + "normalizer": "default" + }, + "source_wikipedia_article": { + "type": "keyword", + "normalizer": "default" + }, + "source_release_stage": { + "type": "keyword", + "normalizer": "default", + "doc_values": false + }, + "source_release_year": { + "type": "integer" + }, + "ref_index": { + "type": "integer", + "doc_values": false, + "index": false + }, + "ref_key": { + "type": "keyword", + "normalizer": "default", + "doc_values": false, + "index": false + }, + "ref_locator": { + "type": "keyword", + "normalizer": "default", + "doc_values": false, + "index": false + }, + "target_release_ident": { + "type": "keyword", + "normalizer": "default" + }, + "target_work_ident": { + "type": "keyword", + "normalizer": "default" + }, + "target_openlibrary_work": { + "type": "keyword", + "normalizer": "default" + }, + "target_url_surt": { + "type": "keyword", + "normalizer": "default", + "doc_values": false + }, + "match_provenance": { + "type": "keyword", + "normalizer": "default" + }, + "match_status": { + "type": "keyword", + "normalizer": "default" + }, + "match_reason": { + "type": "keyword", + "normalizer": "default" + }, + "target_unstructured": { + "type": "text", + "doc_values": false, + "index": false + }, + "target_csl": { + "type": "object", + "enabled": false + } + } + } +} -- cgit v1.2.3