From 3b52bec87d78a4db2a661958be0b2e61e7cd9bac Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Wed, 8 Jul 2026 21:34:59 +0200 Subject: [PATCH] chore(search): mention the impact of disabling search in the refuse message --- services/search/pkg/mapping/classify.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/search/pkg/mapping/classify.go b/services/search/pkg/mapping/classify.go index 9fa357ef7c..f87d30282e 100644 --- a/services/search/pkg/mapping/classify.go +++ b/services/search/pkg/mapping/classify.go @@ -14,7 +14,8 @@ import ( var ErrManualActionRequired = errors.New("manual action required") // ManualActionRequiredError builds the operator-facing error for a breaking -// schema change. index is the index name (OpenSearch) or path (bleve). +// schema change, shared by both engines. index is the index name (OpenSearch) +// or path (bleve). func ManualActionRequiredError(index string, reasons []string) error { return fmt.Errorf( "%w: search index %s was built with a different schema (%s). "+ @@ -22,7 +23,9 @@ func ManualActionRequiredError(index string, reasons []string) error { "start the service (an empty index with the new schema is created), "+ "then rebuild the content by running: opencloud search index --all-spaces. "+ "To bring the instance up without search until a maintenance window, "+ - "set OC_EXCLUDE_RUN_SERVICES=search", + "set OC_EXCLUDE_RUN_SERVICES=search; until the service is back, search "+ + "and features built on it (e.g. the search bar and the tag list) are "+ + "unavailable", ErrManualActionRequired, index, strings.Join(reasons, "; "), index, ) }