diff --git a/app/models/doi.rb b/app/models/doi.rb index 4b8f965c3..ca944bd0b 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -178,7 +178,7 @@ class Doi < ActiveRecord::Base awardTitle: { type: :keyword } } indexes :dates, type: :object, properties: { - date: { type: :date, format: "yyyy-MM-dd||yyyy-MM||yyyy", ignore_malformed: true }, + date: { type: :date, format: "date_optional_time", ignore_malformed: true, fields: { raw: { type: :text }} }, dateType: { type: :keyword } } indexes :geo_locations, type: :object, properties: {