Created
April 1, 2012 18:40
-
-
Save vinodc/2277616 to your computer and use it in GitHub Desktop.
filtered query with range
This file contains hidden or 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
curl -XGET 'localhost:9200/index/doc/_search' -d '{ | |
"query": { | |
"filtered": { | |
"query": { | |
"match_all": {} | |
}, | |
"filter": { | |
"range": { | |
"field1": { | |
"from": 900, | |
"to": 1000 | |
}, | |
"field2": { | |
"from": 900, | |
"to": 10000 | |
} | |
} | |
} | |
} | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment