Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Add correct trial.completion_date mapping
Browse files Browse the repository at this point in the history
Without this, ElasticSearch uses a different mapping that requires dates on the
format 2016-01-01 (don't accept dates like 2016-1-1). This is different from
what we have on `trials.registration_date`, so is surprising to our users.
  • Loading branch information
vitorbaptista committed Nov 17, 2016
1 parent 4d6a08f commit abb486d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/indexers/trials.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ const trialMapping = {
type: 'date',
format: 'dateOptionalTime',
},
completion_date: {
type: 'date',
format: 'dateOptionalTime',
},
},
};

Expand Down

0 comments on commit abb486d

Please sign in to comment.