Last active
May 16, 2017 06:34
-
-
Save semyont/91c4e0b55a7d30cb60cb0f1f72a5a81a to your computer and use it in GitHub Desktop.
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
# GET /_search | |
{ | |
"query": { | |
"bool": { | |
"must": [ | |
{ "match": { "doc.title": "Search" }}, | |
{ "match": { "doc.content": "Elasticsearch" }} | |
], | |
"filter": [ | |
{ "term": { "doc.status": "published" }}, | |
{ "range": { "doc.publish_date": { "gte": "2015-01-01" }}} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment