aboutsummaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-03-26 23:07:16 +0100
committerMartin Czygan <martin.czygan@gmail.com>2021-03-30 23:11:41 +0200
commit2c51bda308cb6b2dad11987efec09e36d465b2ce (patch)
treea64dba9f1de997b44a03360ccf0b7e164a997ebb /extra/elasticsearch
parentf8a34492e7e1cfd5f55517e1344820e671194ee0 (diff)
downloadfatcat-2c51bda308cb6b2dad11987efec09e36d465b2ce.tar.gz
fatcat-2c51bda308cb6b2dad11987efec09e36d465b2ce.zip
add es draft schema for references
Diffstat (limited to 'extra/elasticsearch')
-rw-r--r--extra/elasticsearch/fatcat_ref.json106
1 files changed, 106 insertions, 0 deletions
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
+ }
+ }
+ }
+}