Indexing does not stop - documents are indexed several times
Hi Folks I have a large collection (~5000 PDF) of documents (mostly scans) and startet a reindex some weeks ago. Its still not finished and a check in the logs reveals that most of the documents got indexed several times, one "round" of indexing takes about 2 weeks, which seems to be OK for this amount of data and OCR. But after that the whole process is repeatet. Is there any way to cleanup this? I've some SQL knowlege and I discovered some tables related to fulltext search in the DB, It is worth a try emptying all these tables? Or is there any "job" table with the reindex command which needs a cleanup as well?
I'm using Nextcloud 24.0.7 and the newest fulltextsearch apps with elasticcloud and OCR etc.
It's been indexing our NAS for almost a week now and I from what I see happening in the logs it actually scans each file for each user, even if it is the same file?
This wouldn't be an issue if nextcloud would stay available during the indexing, but like this I see no way in ever using this extension on our company server.
I've recently switched our docker compose stack from elasticsearch 6 to elasticsearch 8, cleaned up the data volume of the elasticsearch service/container, and restarted indexing with this sequence:
occ fulltextsearch:stop
occ fulltextsearch:reset
occ fulltextsearch:test
occ fulltextsearch:reset
occ fulltextsearch:index
My observartion is that:
- indexing is done even for all deactivated users
- groupfolders are indexed separately for each user being member of the groupfolders groups
That leads to enormous numbers of redundantly indexed files in our case, having a large number of groups and groupfolders.