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" ,
"description" : "Specify whether a local or random replica should be used (default: true)"
2013-05-24 06:02:42 -04:00
}
}
} ,
2013-05-27 17:03:30 -04:00
"body" : {
"description" : "The document (`doc`) to percolate against registered queries; optionally also a `query` to limit the percolation to specific registered queries"
}
2013-05-24 06:02:42 -04:00
}
}