Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Elasticsearch filtered query template that can be used in a JMeter test
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
{
"term": {
"pageId": "${__eval(${PAGE_ID})}"
}
},
{
"terms": {
"geoCode": ["${__eval(${GEO_CODE})}","all"]
}
},
{
"range": {
"pubDate": {
"le": "${__eval(${PUB_DATE})}"
}
}
},
{
"range": {
"expDate": {
"gt": "${__eval(${PUB_DATE})}"
}
}
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment