2013-05-24 06:02:42 -04:00
{
"percolate" : {
"documentation" : "http://elasticsearch.org/guide/reference/api/percolate/" ,
"methods" : [ "GET" , "POST" ] ,
"url" : {
"path" : "/{index}/{type}/_percolate" ,
"paths" : [ "/{index}/{type}/_percolate" ] ,
"parts" : {
"index" : {
2013-05-27 17:03:30 -04:00
"type" : "string" ,
"required" : true ,
"description" : "The name of the index with a registered percolator query"
2013-05-24 06:02:42 -04:00
} ,
"type" : {
2013-05-27 17:03:30 -04:00
"type" : "string" ,
"required" : true ,
"description" : "The document type"
2013-05-24 06:02:42 -04:00
}
} ,
"params" : {
"prefer_local" : {
2013-05-27 17:03:30 -04:00
"type" : "boolean" ,
2013-05-28 04:51:49 -04:00
"description" : "With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)"
2013-05-24 06:02:42 -04:00
}
}
} ,
2013-05-27 17:03:30 -04:00
"body" : {
2013-06-22 05:28:14 -04:00
"description" : "The document (`doc`) to percolate against registered queries; optionally also a `query` to limit the percolation to specific registered queries" ,
"required" : true
2013-05-27 17:03:30 -04:00
}
2013-05-24 06:02:42 -04:00
}
}