mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-10 12:48:29 -04:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e503c2c5eb |
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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")
|
||||
}
|
||||
Reference in new issue
Block a user