Merge pull request #2519 from paperless-ngx/force-reindex-for-comments

Fix: Trigger reindex for pre-existing comments
This commit is contained in:
shamoon authored and GitHub committed 2023-01-26 07:46:00 -08:00
commit dadd7472fd
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ django_checks() {
search_index() { search_index() {
local -r index_version=1 local -r index_version=2
local -r index_version_file=${DATA_DIR}/.index_version local -r index_version_file=${DATA_DIR}/.index_version
if [[ (! -f "${index_version_file}") || $(<"${index_version_file}") != "$index_version" ]]; then if [[ (! -f "${index_version_file}") || $(<"${index_version_file}") != "$index_version" ]]; then
+3
View File
@@ -2,6 +2,9 @@
## paperless-ngx 1.12.1 ## paperless-ngx 1.12.1
_Note: Version 1.12.x introduced searching of comments which will work for comments added after the upgrade but a reindex of the search index is required in order to be able to search
older comments. The Docker image will automatically perform this reindex, bare metal installations will have to perform this manually, see [the docs](https://docs.paperless-ngx.com/administration/#index)._
### Bug Fixes ### Bug Fixes
- Fix: comments not showing in search until after manual reindex in v1.12 [@shamoon](https://github.com/shamoon) ([#2513](https://github.com/paperless-ngx/paperless-ngx/pull/2513)) - Fix: comments not showing in search until after manual reindex in v1.12 [@shamoon](https://github.com/shamoon) ([#2513](https://github.com/paperless-ngx/paperless-ngx/pull/2513))