diff --git a/accounts/pkg/service/v0/index.go b/accounts/pkg/service/v0/index.go index 3bb75e439..a3a120294 100644 --- a/accounts/pkg/service/v0/index.go +++ b/accounts/pkg/service/v0/index.go @@ -32,6 +32,10 @@ func (s Service) RebuildIndex(ctx context.Context, request *proto.RebuildIndexRe // recreateContainers adds all indices to the indexer that we have for this service. func recreateContainers(idx *indexer.Indexer, cfg *config.Config) error { // Accounts + if err := idx.AddIndex(&proto.Account{}, "Id", "Id", "accounts", "unique", nil, true); err != nil { + return err + } + if err := idx.AddIndex(&proto.Account{}, "DisplayName", "Id", "accounts", "non_unique", nil, true); err != nil { return err }