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

86 lines
3.2 KiB
JSON
Raw Normal View History

{
"percolate": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-percolate.html",
"methods": ["GET", "POST"],
"url": {
"path": "/{index}/{type}/_percolate",
2014-01-20 11:27:51 -05:00
"paths": ["/{index}/{type}/_percolate", "/{index}/{type}/{id}/_percolate"],
"parts": {
"index": {
"type" : "string",
"required" : true,
2014-01-20 11:27:51 -05:00
"description" : "The index of the document being percolated."
},
"type": {
"type" : "string",
"required" : true,
2014-01-20 11:27:51 -05:00
"description" : "The type of the document being percolated."
},
"id": {
"type" : "string",
"required" : false,
"description" : "Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster."
}
},
"params": {
2014-01-20 11:27:51 -05:00
"routing": {
"type" : "list",
"description" : "A comma-separated list of specific routing values"
},
"preference": {
"type" : "string",
"description" : "Specify the node or shard the operation should be performed on (default: random)"
},
"ignore_unavailable": {
"type" : "boolean",
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
},
"allow_no_indices": {
"type" : "boolean",
2014-01-20 11:27:51 -05:00
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
},
"expand_wildcards": {
"type" : "enum",
"options" : ["open","closed","none","all"],
2014-01-20 11:27:51 -05:00
"default" : "open",
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
},
"percolate_index": {
"type" : "string",
"description" : "The index to percolate the document into. Defaults to index."
},
"percolate_type": {
"type" : "string",
"description" : "The type to percolate document into. Defaults to type."
},
"percolate_routing": {
"type" : "string",
"description" : "The routing value to use when percolating the existing document."
},
"percolate_preference": {
"type" : "string",
"description" : "Which shard to prefer when executing the percolate request."
},
"percolate_format": {
"type" : "enum",
"options" : ["ids"],
"description" : "Return an array of matching query IDs instead of objects"
},
2014-01-20 11:27:51 -05:00
"version" : {
"type" : "number",
"description" : "Explicit version number for concurrency control"
},
"version_type": {
"type" : "enum",
"options" : ["internal", "external", "external_gte", "force"],
2014-01-20 11:27:51 -05:00
"description" : "Specific version type"
}
}
},
"body": {
2014-01-20 11:27:51 -05:00
"description" : "The percolator request definition using the percolate DSL",
"required" : false
}
}
}