* Elasticsearch: filter annotations
* fix broken tests
* add a new test case
* allow type assertion
There is a lint rule to not be able to use assertions. In this case, it is needed and correct way to asset AdHocVariableModel[]
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* simplify the code to add adhoc filters
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* lint
---------
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
'{"search_type":"query_then_fetch","ignore_unavailable":true,"index":"[test-]YYYY.MM.DD"}\n{"query":{"bool":{"filter":[{"bool":{"should":[{"range":{"@test_time":{"from":1683291160012,"to":1683291460012,"format":"epoch_millis"}}},{"range":{"@time_end_field":{"from":1683291160012,"to":1683291460012,"format":"epoch_millis"}}}],"minimum_should_match":1}},{"query_string":{"query":"abc AND abc_key:\\"abc_value\\""}}]}},"size":10000}\n'