From cf2cc6d64568b821326359bf8cc5656732cba965 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 22 May 2019 14:37:25 -0700 Subject: also track work_id in release elasticsearch table --- extra/elasticsearch/release_schema.json | 1 + python/fatcat_tools/transforms/elasticsearch.py | 1 + 2 files changed, 2 insertions(+) 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, -- cgit v1.2.3