Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search: force re-index command #9106

Open
wkloucek opened this issue May 8, 2024 · 1 comment
Open

search: force re-index command #9106

wkloucek opened this issue May 8, 2024 · 1 comment
Labels
Category:Enhancement Add new functionality

Comments

@wkloucek
Copy link
Contributor

wkloucek commented May 8, 2024

Is your feature request related to a problem? Please describe.

I want to force the search service to rebuild the search index for a space / all spaces.
This can currently only be done by deleting the bleve database because search tries to outsmart me and says:

ocis-1       | {"level":"debug","service":"search","path":".","time":"2024-05-08T12:48:54Z","line":"github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:419","message":"Walking tree"}
ocis-1       | {"level":"debug","service":"search","path":".","time":"2024-05-08T12:48:54Z","line":"github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:427","message":"subtree hasn't changed. Skipping."}
ocis-1       | {"level":"debug","service":"search","count":2,"time":"2024-05-08T12:48:54Z","line":"github.com/owncloud/ocis/v2/services/search/pkg/search/search.go:67","message":"new document count"}

What it doesn't know: I might have enabled OCR on the Tika side in the meantime.

Describe the solution you'd like

Introduce a --force option, eg. ocis search index --force. It would do the reindexing even there were no changes detected.

Describe alternatives you've considered

Deleting the whole bleve database. But that creates a downtime of the search index until it has been completely rebuilt. The proposed solution could work in place / only have a search "downtime" for the space we're re-indexing.

Additional context

search service re-index using service account: #9103

@wkloucek wkloucek added the Category:Enhancement Add new functionality label May 8, 2024
@mmattel
Copy link
Contributor

mmattel commented May 14, 2024

Referencing: #5515 (Improve the search service index management)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Enhancement Add new functionality
Projects
Status: Backlog
Development

No branches or pull requests

2 participants