Skip to content

Instantly share code, notes, and snippets.

Created June 6, 2013 20:22
Show Gist options
  • Save anonymous/5724614 to your computer and use it in GitHub Desktop.
Save anonymous/5724614 to your computer and use it in GitHub Desktop.
curl -XPUT http://prodproxy-b-1:9202/venueReadCurrent/_warmer/tipWarmer -d ' {
"query" : {
"top_children" : {
"query" : {
"constant_score" : {
"query" : {
"filtered" : {
"query" : {
"bool" : {
"should" : [ {
"match" : {
"text" : {
"query" : "lobster roll",
"type" : "phrase",
"boost" : 10.0
}
}
}, {
"match" : {
"text" : {
"query" : "lobster roll",
"type" : "boolean",
"operator" : "AND"
}
}
} ]
}
},
"filter" : {
"terms" : {
"geoS2CellIds" : [ "80857F7C00000000", "80857FC000000000", "8085810000000000", "8085824000000000", "808582F000000000", "8085834000000000", "808583C000000000", "8085844000000000", "808585C000000000", "8085870000000000", "8085884000000000", "808588C000000000", "8085894000000000", "80858EC000000000", "80858F4000000000", "80859CC000000000", "8085E1C000000000", "8085E30000000000", "8085E4B000000000", "8085F94000000000", "8085F99000000000", "8085FA4000000000", "8085FB4000000000", "8085FBC000000000", "8085FD0000000000", "8085FE7000000000", "8085FEC000000000", "808607C000000000", "8086090000000000", "80860A4000000000", "80860AF000000000", "80860B4000000000", "80860BC000000000", "80860C4000000000", "80860EB000000000", "808F62C000000000", "808F78B000000000", "808F7C4000000000", "808F7CF000000000", "808F7D4000000000", "808F7DC000000000", "808F7F0000000000", "808F804000000000", "808F814000000000", "808F81C000000000", "808F824000000000", "808F83C000000000" ],
"execution" : "bool_nocache",
"_cache" : false
}
}
}
}
}
},
"type": "tip",
"score": "sum",
"boost": 1,
"factor": 10,
"incremental_factor": 2
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment