2013-05-24 06:02:42 -04:00
{
"percolate" : {
2015-03-24 12:03:35 -04:00
"documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/master/search-percolate.html" ,
2013-05-24 06:02:42 -04:00
"methods" : [ "GET" , "POST" ] ,
"url" : {
"path" : "/{index}/{type}/_percolate" ,
2014-01-20 11:27:51 -05:00
"paths" : [ "/{index}/{type}/_percolate" , "/{index}/{type}/{id}/_percolate" ] ,
2013-05-24 06:02:42 -04:00
"parts" : {
"index" : {
2013-05-27 17:03:30 -04:00
"type" : "string" ,
"required" : true ,
2014-01-20 11:27:51 -05:00
"description" : "The index of the document being percolated."
2013-05-24 06:02:42 -04:00
} ,
"type" : {
2013-05-27 17:03:30 -04:00
"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."
2013-05-24 06:02:42 -04:00
}
} ,
"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" : {
2013-05-27 17:03:30 -04:00
"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" ,
2015-01-23 10:03:17 -05:00
"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."
} ,
2014-08-06 05:26:45 -04:00
"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."
} ,
2014-05-23 12:26:17 -04:00
"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" ,
2014-01-31 08:38:21 -05:00
"options" : [ "internal" , "external" , "external_gte" , "force" ] ,
2014-01-20 11:27:51 -05:00
"description" : "Specific version type"
2013-05-24 06:02:42 -04:00
}
}
} ,
2013-05-27 17:03:30 -04:00
"body" : {
2014-01-20 11:27:51 -05:00
"description" : "The percolator request definition using the percolate DSL" ,
"required" : false
2013-05-27 17:03:30 -04:00
}
2013-05-24 06:02:42 -04:00
}
}