Skip to content

Instantly share code, notes, and snippets.

@eriky
Last active December 10, 2019 10:36
Show Gist options
  • Save eriky/b896fb4cc44fc3a297bcd673ded949a7 to your computer and use it in GitHub Desktop.
Save eriky/b896fb4cc44fc3a297bcd673ded949a7 to your computer and use it in GitHub Desktop.
curl -X GET "localhost:9200/twitter/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"bool": {
"filter": [
{ "term": { "username": "eriky" }},
{ "range": { "post_date": { "lte": "2020-01-01" }}}
]
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment