Added the API definition for `_percolate`
This commit is contained in:
parent
fdf118d0a1
commit
2490b50ddd
|
@ -7,17 +7,25 @@
|
||||||
"paths": ["/{index}/{type}/_percolate"],
|
"paths": ["/{index}/{type}/_percolate"],
|
||||||
"parts": {
|
"parts": {
|
||||||
"index": {
|
"index": {
|
||||||
|
"type" : "string",
|
||||||
|
"required" : true,
|
||||||
|
"description" : "The name of the index with a registered percolator query"
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
|
"type" : "string",
|
||||||
|
"required" : true,
|
||||||
|
"description" : "The document type"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"params": {
|
"params": {
|
||||||
"prefer_local": {
|
"prefer_local": {
|
||||||
},
|
"type" : "boolean",
|
||||||
"type": {
|
"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