Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions services/search/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Fill the new index by indexing all spaces again:

```shell
# the service keeps running while it happens
opencloud search index --all-spaces
opencloud search index --all-spaces --insecure
```

Once the new index is filled, every index but the one with the highest
Expand All @@ -31,7 +31,7 @@ The new index is a directory next to the old `bleve` one, both in
bleve index cannot be copied, index all spaces again:

```shell
opencloud search index --all-spaces
opencloud search index --all-spaces --insecure
```

Once the new index is filled, every directory but the one with the highest
Expand Down
4 changes: 2 additions & 2 deletions services/search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ opencloud search index --space $SPACE_ID
It can also be used to re-index all spaces:

```shell
opencloud search index --all-spaces
opencloud search index --all-spaces --insecure
```

Please note that a reindex only picks up new or changed files. Files that have already been indexed are not scanned again, even if the configuration or the whole extractor has been changed. To force a full rescan (re-running the extractor on every file) you need to use the `force-rescan` flag:


```shell
opencloud search index --all-spaces --force-rescan
opencloud search index --all-spaces --force-rescan --insecure
```

## Metrics
Expand Down
4 changes: 2 additions & 2 deletions services/search/pkg/mapping/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func Reconcile(index string, r SchemaReconciler, logger log.Logger) (Classificat
case VerdictAdditive:
persisted, err := r.ApplyAdditive()
if persisted {
logger.Warn().Strs("fields", classification.NewFields).Str("index", index).Msg("extended the search index mapping with new fields; documents indexed before the upgrade do not contain them and queries on these fields will miss those documents until they are re-indexed; to re-index everything run: opencloud search index --all-spaces --force-rescan")
logger.Warn().Strs("fields", classification.NewFields).Str("index", index).Msg("extended the search index mapping with new fields; documents indexed before the upgrade do not contain them and queries on these fields will miss those documents until they are re-indexed; to re-index everything run: opencloud search index --all-spaces --force-rescan --insecure")
}
if err != nil {
return classification, err
Expand All @@ -40,5 +40,5 @@ func Reconcile(index string, r SchemaReconciler, logger log.Logger) (Classificat
// LogNewIndexCreated logs that a fresh, empty index was created and how to
// backfill it. The create path does not run through Reconcile.
func LogNewIndexCreated(logger log.Logger, index string) {
logger.Info().Str("index", index).Msg("created a new empty search index; if this OpenCloud instance already held files, they are not in it yet, index them by running: opencloud search index --all-spaces --force-rescan")
logger.Info().Str("index", index).Msg("created a new empty search index; if this OpenCloud instance already held files, they are not in it yet, index them by running: opencloud search index --all-spaces --force-rescan --insecure")
}