Created
June 28, 2017 12:43
-
-
Save daniellavoie/f1bddafc915c721461c9d6267aa43e9c to your computer and use it in GitHub Desktop.
Exemple QueryDSL
This file contains 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
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"term": { | |
"code_post": "03100" | |
} | |
}, | |
{ | |
"range": { | |
"@timestamp": { | |
"gt": "2017-06-28T11:45:20.000Z", | |
"lt": "2017-06-28T11:46:00.000Z" | |
} | |
} | |
} | |
], | |
"must_not": [ | |
{ | |
"match": { | |
"nom_voie": "champs" | |
} | |
}, | |
{ | |
"match": { | |
"nom_commune": "Montluçon" | |
} | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment