From b4b49fc587e94f57fd8f8c6abd3b879eb3c7c80b Mon Sep 17 00:00:00 2001 From: Stephanie Hingtgen Date: Tue, 28 Jan 2025 14:24:55 -0700 Subject: [PATCH] K8s: Dashboards: use title sort field instead (#99712) --- pkg/services/dashboards/service/dashboard_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/dashboards/service/dashboard_service.go b/pkg/services/dashboards/service/dashboard_service.go index ad78d14952f..8f4953d2723 100644 --- a/pkg/services/dashboards/service/dashboard_service.go +++ b/pkg/services/dashboards/service/dashboard_service.go @@ -1689,9 +1689,9 @@ func (dr *DashboardServiceImpl) searchDashboardsThroughK8sRaw(ctx context.Contex // but is currently not needed by other services in the backend if query.Title != "" { req := []*resource.Requirement{{ - Key: resource.SEARCH_FIELD_TITLE, + Key: resource.SEARCH_FIELD_TITLE_SORT, // use title sort to prevent issues with `-` in the title & how bleve searches Operator: string(selection.In), - Values: []string{query.Title}, + Values: []string{strings.ToLower(query.Title)}, }} request.Options.Fields = append(request.Options.Fields, req...) }