Skip to content
Browse files

Added a note to the Timestamp type about using timestamps in queries

  • Loading branch information...
1 parent 2bf1e2a commit 1519ffd27953c3ebd062d52cff48c03bac373417 @clintongormley committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Elastic/Model/TypeMap/ES.pm
View
5 lib/Elastic/Model/TypeMap/ES.pm
@@ -177,3 +177,8 @@ Attributes of type L<Elastic::Model::Types/"Timestamp"> are deflated
to epoch milliseconds, and inflated to epoch seconds (with floating-point
milliseconds). It is mapped as C<< { type => 'date' } >>.
+B<Note:> When querying timestamp fields in a View you will need to express the
+comparison values as epoch milliseconds or as an RFC3339 datetime:
+
+ { my_timestamp => { '>' => 1351748867 * 1000 }}
+ { my_timestamp => { '>' => '2012-11-01T00:00:00Z' }}

0 comments on commit 1519ffd

Please sign in to comment.
Something went wrong with that request. Please try again.