GNOME Bugzilla – Bug 405317
Total match count is wrong with excluded directories
Last modified: 2007-02-12 21:00:57 UTC
Please describe the problem: After adding an exclude path to the beagle configuration the indexer doesn't remove previously indexed files from the database. The files don't show up in beagle-query or beagle-search anymore, but unwanted messages like "Showing 8 of 9 matches" pop up in beagle-search where the 9th is that one which is located in the newly excluded path. The calculation of the number of total matches seems to be wrong, doesn't care about the new excludes. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information: dBera commented on this: Arghh... when I added the code to get the total number of matches I didnt realize it would bite back this way :-) . You are right, the ignored document is not immediately removed from the index (that would require recrawling the whole tree to figure out what should be ignored) but silently removed from search results. The document itself is present in the index, as evident from the count. The count should be updated to hide the "little cheating" - thats a bug.
*** This bug has been marked as a duplicate of 169222 ***
Created attachment 82292 [details] [review] adjust the count if HitFilter rejects any hit This bug is not strictly a duplicate of the #169222. The demand is pretty small - just that the actual count be correct. Stephan, can you test if the attached patch corrects the problem ?
I've checked with rev 3413 plus your patch. The count of total matches is calculated and displayed correctly now, even after adding a new exclude path. Thanks.
Thanks. Checked in the fix, r3415.
Fixing the summary to reflect the fix that was checked in.