OpenSearch/rest-api-spec/api/percolate.json

32 lines
960 B
JSON

{
"percolate": {
"documentation": "http://elasticsearch.org/guide/reference/api/percolate/",
"methods": ["GET", "POST"],
"url": {
"path": "/{index}/{type}/_percolate",
"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" : "boolean",
"description" : "Specify whether a local or random replica should be used (default: true)"
}
}
},
"body": {
"description" : "The document (`doc`) to percolate against registered queries; optionally also a `query` to limit the percolation to specific registered queries"
}
}
}