Added the API definition for `_percolate`

This commit is contained in:
Karel Minarik 2013-05-27 23:03:30 +02:00
parent fdf118d0a1
commit 2490b50ddd
1 changed files with 11 additions and 3 deletions

View File

@ -7,17 +7,25 @@
"paths": ["/{index}/{type}/_percolate"],
"parts": {
"index": {
"type" : "string",
"required" : true,
"description" : "The name of the index with a registered percolator query"
},
"type": {
"type" : "string",
"required" : true,
"description" : "The document type"
}
},
"params": {
"prefer_local": {
},
"type": {
"type" : "boolean",
"description" : "Specify whether a local or random replica should be used (default: true)"
}
}
},
"body": null
"body": {
"description" : "The document (`doc`) to percolate against registered queries; optionally also a `query` to limit the percolation to specific registered queries"
}
}
}