Created
January 24, 2012 14:08
-
-
Save jarosan/1670346 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
curl -X GET "http://localhost:9200/development_places/place/_search?pretty=true" -d ' | |
{ | |
"query" : { | |
"filtered" : { | |
"query" : { | |
"custom_score" : { | |
"query" : { | |
"match_all":{} | |
}, | |
"script" : "_source.search_ranking * -1" | |
} | |
}, | |
"filter" : { | |
"script" : { | |
"script" : "_source.search_ranking > 20" | |
} | |
} | |
} | |
}, | |
"size":5, | |
"from":0 | |
}' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment