Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Add field im mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jecos committed Sep 11, 2019
1 parent 5c8e925 commit d844d65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"acceptedTerms": {
"type": "boolean"
},
"isPublic": {
"type": "boolean"
},
"roles": {
"type": "keyword"
},
Expand Down
5 changes: 5 additions & 0 deletions service.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ def transform(event):
'doc': {
'firstName': payload.get('firstName'),
'lastName': payload.get('lastName'),
'email': payload.get('email'),
'institutionalEmail': payload.get('institutionalEmail'),
'acceptedTerms': payload.get('acceptedTerms'),
'isPublic': payload.get('isPublic'),
'roles': payload.get('roles'),
'title': payload.get('title'),
'jobTitle': payload.get('jobTitle'),
'institution': payload.get('institution'),
Expand Down

0 comments on commit d844d65

Please sign in to comment.