Created
August 29, 2016 11:56
-
-
Save digitalkaoz/f2849e67ef2bfbee37ca4529203edb7f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"entity": { | |
"dynamic_templates": [ | |
{ | |
"time_string": { | |
"mapping": { | |
"format": "strict_date_time", | |
"index": "not_analyzed", | |
"type": "date" | |
}, | |
"match": "*tedAt" | |
} | |
} | |
], | |
"date_detection": false, | |
"properties": { | |
"createdAt": { | |
"format": "strict_date_time", | |
"type": "date" | |
}, | |
"id": { | |
"index": "not_analyzed", | |
"type": "string" | |
}, | |
"updatedAt": { | |
"format": "strict_date_time", | |
"type": "date" | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"range": { | |
"updatedAt": { | |
"gt": "lolcat", | |
"format": "strict_date_time" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i get all results, no matter whats in
gt
orlt