From 2f344c2f86d6f4db07e99af29ba09c9ce37cb948 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 22 Feb 2019 13:18:50 -0800 Subject: include container_id in release ES schema --- extra/elasticsearch/release_schema.json | 1 + python/fatcat_tools/transforms.py | 1 + 2 files changed, 2 insertions(+) diff --git a/extra/elasticsearch/release_schema.json b/extra/elasticsearch/release_schema.json index 565c8137..23717691 100644 --- a/extra/elasticsearch/release_schema.json +++ b/extra/elasticsearch/release_schema.json @@ -48,6 +48,7 @@ "license": { "type": "keyword" }, "publisher": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }, "container_name": { "type": "text", "index": true, "analyzer": "textIcu", "search_analyzer":"textIcuSearch" }, + "container_id": { "type": "keyword" }, "container_issnl": { "type": "keyword" }, "container_type": { "type": "keyword" }, "contrib_count": { "type": "integer" }, diff --git a/python/fatcat_tools/transforms.py b/python/fatcat_tools/transforms.py index 182be26e..0e5afd6a 100644 --- a/python/fatcat_tools/transforms.py +++ b/python/fatcat_tools/transforms.py @@ -115,6 +115,7 @@ def release_to_elasticsearch(entity, force_bool=True): if container: t['publisher'] = container.publisher t['container_name'] = container.name + t['container_id'] = container.ident t['container_issnl'] = container.issnl t['container_type'] = container.container_type if container.extra: -- cgit v1.2.3