From 475856250e598216366ed1982e523e883b652139 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 23 May 2019 11:43:50 -0700 Subject: add 'superceded' release extra flag to elastic schema --- python/fatcat_tools/transforms/elasticsearch.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python/fatcat_tools/transforms') diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index f287fe10..8589d364 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -292,6 +292,7 @@ def container_to_elasticsearch(entity, force_bool=True): if extra.get('ia'): if extra['ia'].get('sim'): any_ia_sim = True + t['is_superceded'] = bool(extra.get('superceded')) t['in_doaj'] = bool(in_doaj) t['in_road'] = bool(in_road) -- cgit v1.2.3