We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8caf11d commit bded8bcCopy full SHA for bded8bc
lib/pbench/server/api/resources/query_apis/elasticsearch_api.py
@@ -25,12 +25,10 @@ def post(self):
25
26
try:
27
# query Elasticsearch
28
+ url = f"{self.elasticsearch}/{json_data['indices']}"
29
if "params" in json_data:
- url = (
30
- f"{self.elasticsearch}/{json_data['indices']}?{json_data['params']}"
31
- )
32
- else:
33
- url = f"{self.elasticsearch}/{json_data['indices']}"
+ if "ignore_unavailable" in json_data["params"]:
+ url = f"{url}?ignore_unavailable={json_data['params']['ignore_unavailable']}"
34
35
if "payload" in json_data:
36
es_response = requests.post(url, json=json_data["payload"])
0 commit comments