From dd95279e7ed9595bebdf0fb83bb222d32f7c8c76 Mon Sep 17 00:00:00 2001 From: fmassot Date: Tue, 20 Feb 2024 10:59:02 +0100 Subject: [PATCH] Fix quickwit endpoint to retrieve index configs from index patterns. --- pkg/quickwit/timestamp_infos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/quickwit/timestamp_infos.go b/pkg/quickwit/timestamp_infos.go index ccbf978..45a0313 100644 --- a/pkg/quickwit/timestamp_infos.go +++ b/pkg/quickwit/timestamp_infos.go @@ -74,7 +74,7 @@ func GetTimestampFieldFromIndex(index string, qwickwitUrl string, cli *http.Clie } func GetTimestampFieldFromIndexPattern(indexPattern string, qwickwitUrl string, cli *http.Client) (string, error) { - mappingEndpointUrl := qwickwitUrl + "/indexes?index_id_pattern=" + indexPattern + mappingEndpointUrl := qwickwitUrl + "/indexes?index_id_patterns=" + indexPattern qwlog.Debug("Calling quickwit endpoint: " + mappingEndpointUrl) r, err := cli.Get(mappingEndpointUrl) if err != nil {