summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index a8e0227b..7f7f2f1b 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -86,10 +86,16 @@ def release_to_elasticsearch(entity, force_bool=True):
t['ref_count'] = len(release.refs or [])
t['contrib_count'] = len(release.contribs or [])
contrib_names = []
+ creator_ids = []
for c in (release.contribs or []):
if c.raw_name:
contrib_names.append(c.raw_name)
+ elif c.surname:
+ contrib_names.append(c.surname)
+ if c.creator_id:
+ creator_ids.append(c.creator_id)
t['contrib_names'] = contrib_names
+ t['creator_ids'] = creator_ids
container = release.container
if container: