Added the API definition for `_percolate`
This commit is contained in:
parent
fdf118d0a1
commit
2490b50ddd
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue