2014-03-17 06:30:47 -04:00
{
2014-03-20 16:58:08 -04:00
"search_template" : {
2015-03-24 12:03:35 -04:00
"documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html" ,
2014-03-17 06:30:47 -04:00
"methods" : [ "GET" , "POST" ] ,
"url" : {
"path" : "/_search/template" ,
"paths" : [ "/_search/template" , "/{index}/_search/template" , "/{index}/{type}/_search/template" ] ,
"parts" : {
"index" : {
"type" : "list" ,
"description" : "A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices"
} ,
"type" : {
"type" : "list" ,
"description" : "A comma-separated list of document types to search; leave empty to perform the operation on all types"
}
2014-04-02 18:01:30 -04:00
} ,
"params" : {
"ignore_unavailable" : {
"type" : "boolean" ,
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
} ,
"allow_no_indices" : {
"type" : "boolean" ,
"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-04-02 18:01:30 -04:00
"default" : "open" ,
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
} ,
"preference" : {
"type" : "string" ,
"description" : "Specify the node or shard the operation should be performed on (default: random)"
} ,
"routing" : {
"type" : "list" ,
"description" : "A comma-separated list of specific routing values"
} ,
"scroll" : {
"type" : "duration" ,
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
} ,
"search_type" : {
"type" : "enum" ,
"options" : [ "query_then_fetch" , "query_and_fetch" , "dfs_query_then_fetch" , "dfs_query_and_fetch" , "count" , "scan" ] ,
"description" : "Search operation type"
}
2014-03-17 06:30:47 -04:00
}
} ,
"body" : {
"description" : "The search definition template and its params"
}
}
}