diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-02-22 13:18:50 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-02-22 13:18:50 -0800 |
commit | 2f344c2f86d6f4db07e99af29ba09c9ce37cb948 (patch) | |
tree | 1d0852ae29085b1a9655157b09ac364b0f06a38f | |
parent | 0ecbdac18520f2cb0b171fa35fa6926266da3c55 (diff) | |
download | fatcat-2f344c2f86d6f4db07e99af29ba09c9ce37cb948.tar.gz fatcat-2f344c2f86d6f4db07e99af29ba09c9ce37cb948.zip |
include container_id in release ES schema
-rw-r--r-- | extra/elasticsearch/release_schema.json | 1 | ||||
-rw-r--r-- | python/fatcat_tools/transforms.py | 1 |
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: |