Skip to content

Commit

Permalink
Remove format for journals 'created_at' field (#428)
Browse files Browse the repository at this point in the history
- elasticsearch >= 2 will complain about the format, because
  `basic_date_time` is specified and epoch is given, while es < 2 will
  silently accept epoch
- removing the format should make es < 2 accept the epoch value as usual
  and let es >= 2 use its default
  `strict_date_optional_time||epoch_millis`
  • Loading branch information
msievers authored and pyromaniac committed Sep 21, 2016
1 parent 2be25a3 commit f087b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chewy/journal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Journal
type_name: { type: 'string', index: 'not_analyzed' },
action: { type: 'string', index: 'not_analyzed' },
object_ids: { type: 'string', index: 'not_analyzed' },
created_at: { type: 'date', format: 'basic_date_time' }
created_at: { type: 'date' }
}
}
}.freeze
Expand Down

0 comments on commit f087b9f

Please sign in to comment.