Skip to content

Commit

Permalink
replaced dateOptionalTime as strict_date_optional_time||epoch_millis
Browse files Browse the repository at this point in the history
  • Loading branch information
kelp404 committed Aug 26, 2017
1 parent 6816b5f commit 883b10e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
break;
case properties.DateProperty:
field.type = 'date';
field.format = 'dateOptionalTime';
field.format = 'strict_date_optional_time||epoch_millis';
break;
case properties.ReferenceProperty:
field.type = 'string';
Expand All @@ -407,7 +407,7 @@
break;
case properties.DateProperty:
field.type = 'date';
field.format = 'dateOptionalTime';
field.format = 'strict_date_optional_time||epoch_millis';
break;
case properties.ReferenceProperty:
field.type = 'string';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enju",
"version": "0.2.6",
"version": "0.2.8",
"description": "An elasticsearch on node.js written in CoffeeScript.",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/document.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ module.exports = class Document
field.type = 'double'
when properties.DateProperty
field.type = 'date'
field.format = 'dateOptionalTime'
field.format = 'strict_date_optional_time||epoch_millis'
when properties.ReferenceProperty
field.type = 'string'
field.analyzer = 'keyword'
Expand All @@ -289,7 +289,7 @@ module.exports = class Document
field.type = 'double'
when properties.DateProperty
field.type = 'date'
field.format = 'dateOptionalTime'
field.format = 'strict_date_optional_time||epoch_millis'
when properties.ReferenceProperty
field.type = 'string'
field.analyzer = 'keyword'
Expand Down

0 comments on commit 883b10e

Please sign in to comment.