Skip to content

Instantly share code, notes, and snippets.

@mkathuria
Created October 3, 2018 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkathuria/f54c8228876ee4891850ee1e529fdaee to your computer and use it in GitHub Desktop.
Save mkathuria/f54c8228876ee4891850ee1e529fdaee to your computer and use it in GitHub Desktop.
{
"size": 100,
"query": {
"constant_score": {
"filter": {
"bool": {
"must": [{
"term": {
"routing": {
"value": "123456",
"boost": 1.0
}
}
}, {
"terms": {
"txnType": [1]
}
}, {
"range": {
"createTimestamp": {
"from": 1506364200000,
"to": 1537986599000,
"include_lower": true,
"include_upper": true,
"boost": 1.0
}
}
}],
"disable_coord": false,
"adjust_pure_negative": true,
"boost": 1.0
}
},
"boost": 1.0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment