summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-02-22 13:18:50 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-02-22 13:18:50 -0800
commit2f344c2f86d6f4db07e99af29ba09c9ce37cb948 (patch)
tree1d0852ae29085b1a9655157b09ac364b0f06a38f
parent0ecbdac18520f2cb0b171fa35fa6926266da3c55 (diff)
downloadfatcat-2f344c2f86d6f4db07e99af29ba09c9ce37cb948.tar.gz
fatcat-2f344c2f86d6f4db07e99af29ba09c9ce37cb948.zip
include container_id in release ES schema
-rw-r--r--extra/elasticsearch/release_schema.json1
-rw-r--r--python/fatcat_tools/transforms.py1
2 files changed, 2 insertions, 0 deletions
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: