This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Fixed
FS#2275 "The search index is corrupted." doesn't go away in ?do=check
other
2011-06-04nanite
Hi again, all.
I made the switch to full-release Rincewind today and ran doku.php?do=check. It said the search index was corrupted so I decided to use the searchindex plugin to fix it. After adapting its ajax.php to my installation (bug #2233), it said the index was rebuilt properly. Great -- searching does work properly indeed.
The weird thing is, when I run doku.php?do=check it still complains about the search index.
I'm not actually sure if this is a new bug or not, since I never used ?do=check in Anteater.
2011-06-05Michitux
That check is new and has been added because the search index could be corrupted while using the RC1 version, so you won't see that message in Anteater. A corrupted index means in this case just that it's possible that results for a word can be missing or wrong, so that the search is working doesn't mean that the index isn't corrupted. Have you used that RC version or a development of the last months?
I've an idea: Maybe the metadata index is corrupted. The searchindex plugin somehow doesn't delete the metadata index unfortunately. Could you try opening both relation_references_w.idx and relation_references_w.idx in data/index and see if they have the same number of lines? Or also simply delete these two files and the relation_references_p.idx file in the same directory and execute the searchindex plugin again. You can also do the check again before rebuilding the index after deleting these three files, then the warning should go away, too.
2011-06-06nanite
Yes, I had used RC1 previously.
It looks like you're right -- relation_references_i had one more line than relation_references_w.
I deleted relation_references_*, and when I ran ?do=check afterwards it still complained about the index. The relation* files did not exist at this point.
I then used the plugin to rebuilt the index, and it no longer complains about corruption. If you're curious to see, I kept the old files.
I'm still wondering why the warning didn't go away after the first rebuilt + deletion of the relation references index files. However both ways for rebuilding the index should properly rebuild the index now and I hope the index corruption won't come back so I'll close the bug. If your should experience the problem again please reopen it or open a new bug.
2011-10-15Michitux
The metadata index is now deleted, too, when the index is rebuilt, bin/indexer.php has been fixed in 4b938509