aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-22 14:37:25 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-22 14:37:25 -0700
commitcf2cc6d64568b821326359bf8cc5656732cba965 (patch)
treed746ec7c8df83184aa286110bce277ea81d03c53
parent9aeb154a32849649ac3722c52106d9abd8ec5c07 (diff)
downloadfatcat-cf2cc6d64568b821326359bf8cc5656732cba965.tar.gz
fatcat-cf2cc6d64568b821326359bf8cc5656732cba965.zip
also track work_id in release elasticsearch table
-rw-r--r--extra/elasticsearch/release_schema.json1
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/extra/elasticsearch/release_schema.json b/extra/elasticsearch/release_schema.json
index 7d1e1e53..57ff4eb9 100644
--- a/extra/elasticsearch/release_schema.json
+++ b/extra/elasticsearch/release_schema.json
@@ -30,6 +30,7 @@
"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" },
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index c150572e..f287fe10 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -42,6 +42,7 @@ def release_to_elasticsearch(entity, force_bool=True):
ident = release.ident,
state = release.state,
revision = release.revision,
+ work_id = release.work_id,
title = release.title,
subtitle = release.subtitle,
original_title = release.original_title,