-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathindices.validate_query.json
89 lines (89 loc) · 3.06 KB
/
indices.validate_query.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
{
"indices.validate_query": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html",
"description": "Allows a user to validate a potentially expensive query without executing it."
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{
"path": "/_validate/query",
"methods": ["GET", "POST"]
},
{
"path": "/{index}/_validate/query",
"methods": ["GET", "POST"],
"parts": {
"index": {
"type": "list",
"description": "A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices"
}
}
}
]
},
"params": {
"explain": {
"type": "boolean",
"description": "Return detailed information about the error"
},
"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",
"options": ["open", "closed", "hidden", "none", "all"],
"default": "open",
"description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
},
"q": {
"type": "string",
"description": "Query in the Lucene query string syntax"
},
"analyzer": {
"type": "string",
"description": "The analyzer to use for the query string"
},
"analyze_wildcard": {
"type": "boolean",
"description": "Specify whether wildcard and prefix queries should be analyzed (default: false)"
},
"default_operator": {
"type": "enum",
"options": ["AND", "OR"],
"default": "OR",
"description": "The default operator for query string query (AND or OR)"
},
"df": {
"type": "string",
"description": "The field to use as default where no field prefix is given in the query string"
},
"lenient": {
"type": "boolean",
"description": "Specify whether format-based query failures (such as providing text to a numeric field) should be ignored"
},
"rewrite": {
"type": "boolean",
"description": "Provide a more detailed explanation showing the actual Lucene query that will be executed."
},
"all_shards": {
"type": "boolean",
"description": "Execute validation on all shards instead of one random shard per index"
}
},
"body": {
"description": "The query definition specified with the Query DSL"
}
}
}