diff --git a/accounts/pkg/command/rebuild_index.go b/accounts/pkg/command/rebuild_index.go index 9cc73ce910..d789f0a860 100644 --- a/accounts/pkg/command/rebuild_index.go +++ b/accounts/pkg/command/rebuild_index.go @@ -11,11 +11,11 @@ import ( index "github.com/owncloud/ocis/accounts/pkg/proto/v0" ) -// DeleteIndex rebuilds the entire configured index. -func DeleteIndex(cdf *config.Config) *cli.Command { +// RebuildIndex rebuilds the entire configured index. +func RebuildIndex(cdf *config.Config) *cli.Command { return &cli.Command{ Name: "rebuildIndex", - Usage: "Rebuilds the service's index", + Usage: "Rebuilds the service's index, i.e. deleting and then re-adding all existing documents", Aliases: []string{"rebuild", "ri"}, Action: func(ctx *cli.Context) error { idxSvcID := "com.owncloud.api.accounts" diff --git a/accounts/pkg/command/root.go b/accounts/pkg/command/root.go index 68c6192f0d..63f9803889 100644 --- a/accounts/pkg/command/root.go +++ b/accounts/pkg/command/root.go @@ -49,7 +49,7 @@ func Execute() error { InspectAccount(cfg), RemoveAccount(cfg), PrintVersion(cfg), - DeleteIndex(cfg), + RebuildIndex(cfg), }, }