Skip to content

Instantly share code, notes, and snippets.

@digitalkaoz
Created August 29, 2016 11:56
Show Gist options
  • Save digitalkaoz/f2849e67ef2bfbee37ca4529203edb7f to your computer and use it in GitHub Desktop.
Save digitalkaoz/f2849e67ef2bfbee37ca4529203edb7f to your computer and use it in GitHub Desktop.
{
"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"
}
}
}
}
{
"range": {
"updatedAt": {
"gt": "lolcat",
"format": "strict_date_time"
}
}
}
@digitalkaoz
Copy link
Author

i get all results, no matter whats in gt or lt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment