aboutsummaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/elasticsearch')
-rwxr-xr-xextra/elasticsearch/transform_release.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/elasticsearch/transform_release.py b/extra/elasticsearch/transform_release.py
index 4922a362..86d6e4b7 100755
--- a/extra/elasticsearch/transform_release.py
+++ b/extra/elasticsearch/transform_release.py
@@ -62,6 +62,8 @@ def transform(m):
extra = m.get('extra', dict())
if extra:
t['in_shadow'] = extra.get('in_shadow')
+ if extra.get('grobid') and extra['grobid'].get('is_longtail_oa'):
+ t['container_is_longtail_oa'] = True
t['any_abstract'] = bool(t.get('abstracts'))
t['is_kept'] = container_is_kept or extra.get('is_kept', False)