-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathsearch_template.json
107 lines (107 loc) · 3.43 KB
/
search_template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"search_template":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html",
"description":"Allows to use the Mustache language to pre-render a search definition."
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_search/template",
"methods":[
"GET",
"POST"
]
},
{
"path":"/{index}/_search/template",
"methods":[
"GET",
"POST"
],
"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"
}
}
}
]
},
"params":{
"ignore_unavailable":{
"type":"boolean",
"description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)"
},
"ignore_throttled":{
"type":"boolean",
"description":"Whether specified concrete, expanded or aliased indices should be ignored when throttled"
},
"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",
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
"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":"time",
"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"
],
"description":"Search operation type"
},
"explain":{
"type":"boolean",
"description":"Specify whether to return detailed information about score computation as part of a hit"
},
"profile":{
"type":"boolean",
"description":"Specify whether to profile the query execution"
},
"typed_keys":{
"type":"boolean",
"description":"Specify whether aggregation and suggester names should be prefixed by their respective types in the response"
},
"rest_total_hits_as_int":{
"type":"boolean",
"description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response",
"default":false
},
"ccs_minimize_roundtrips":{
"type":"boolean",
"description":"Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution",
"default":"true"
}
},
"body":{
"description":"The search definition template and its params",
"required":true
}
}
}