Fix source parsing and set default to all
This commit is contained in:
parent
c5856ce20b
commit
7d0ebf87bd
@ -29,7 +29,7 @@ DRILLDOWN_DEFAULT_PARAMS = {
|
||||
"size": "15",
|
||||
"index": "main",
|
||||
"sorting": "desc",
|
||||
"source": "4ch",
|
||||
"source": "all",
|
||||
}
|
||||
|
||||
|
||||
|
@ -548,7 +548,7 @@ class ElasticsearchBackend(StorageBackend):
|
||||
add_top_tmp["bool"]["should"].append(
|
||||
{"match_phrase": {"src": source_iter}}
|
||||
)
|
||||
if rule_object is not None and query_params["source"] != "all":
|
||||
if query_params["source"] != "all":
|
||||
add_top.append(add_top_tmp)
|
||||
|
||||
# R - Ranges
|
||||
|
Loading…
Reference in New Issue
Block a user