Skip to content

Instantly share code, notes, and snippets.

@santiago
Created October 8, 2013 00:12
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 santiago/6877312 to your computer and use it in GitHub Desktop.
Save santiago/6877312 to your computer and use it in GitHub Desktop.
{ "query":
{
"filtered": {
"query": {
"multi_match": {
"fields": [
"title^2",
"description"
],
"type": "phrase_prefix",
"query": "quant"
}
},
"filter": {
"and": [
{
"range": {
"start_date": {
"from": 1380412800000,
"to": 1381017599000
}
}
},
{
"range": {
"start_date": {
"from": 1381017600000,
"to": 1381622399000
}
}
},
{
"numeric_range": {
"price": {
"from": 0.01,
"to": 200
}
}
},
{
"numeric_range": {
"price": {
"from": 200,
"to": 300
}
}
},
{
"term": {
"categories": "Mathematics"
}
},
{
"term": {
"categories": "Physics"
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment