summaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch
diff options
context:
space:
mode:
authorbnewbold <bnewbold@archive.org>2021-04-02 22:08:11 +0000
committerbnewbold <bnewbold@archive.org>2021-04-02 22:08:11 +0000
commitc0b145978280d53207aa714aab67cb582d9399ad (patch)
tree2b5ebb55568c86e16c987c28a895051006d47917 /extra/elasticsearch
parent88bb447aadef9db5dba02397f44bfdb667298187 (diff)
parent2c51bda308cb6b2dad11987efec09e36d465b2ce (diff)
downloadfatcat-c0b145978280d53207aa714aab67cb582d9399ad.tar.gz
fatcat-c0b145978280d53207aa714aab67cb582d9399ad.zip
Merge branch 'martin-es-schema-citations' into 'master'
add es draft schema for references See merge request webgroup/fatcat!99
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
+ }
+ }
+ }
+}