summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: