Bug: Wiki Search Results Showing Deleted Pages

When searching a wiki, deleted pages are included in the search results.

To reproduce this bug:

  1. Create a page named “Test 1”
  2. Delete the page (or rename the page from “Test 1” to “Test 2”).
  3. Search for “Test”, then select the “Wikis” tab.
  4. “Test 1” (and “Test 2”) will usually appear in the search results.
  5. When a user clicks “Test 1”, they will be taken to the “Create new page”. This is very confusing for users. Users are not notified that the page has been deleted, and users aren’t shown the version history of the deleted page.

Clearly this is not good. I have a wiki that contains 1,000+ pages. A few weeks ago we renamed all the pages to a new naming convention, and now weeks later search results are still showing most of these deleted pages alongside the current pages… This has rendered search not user friendly. When searching the contents of a wiki, search results should not show deleted pages.


Hi @cloaked2222 - I haven’t been able to replicate this so far - when I remove pages from my test wikis they’re also removed from search results within a few seconds.

Can you let me know which repository this is happening on, and I’ll trigger a re-index of the wiki to see if that helps!

1 Like

I wonder if the problem could be cache-related. In the past I’ve experienced website refresh issues due to ISPs’ caching — had to use a proxy to see the updates in real time, even with dynamically generated pages, because my ISP apparently was showing me cached results. Either that or local caching could be the reasons why old results show up in searches?

I think it’s definitely cache related, yes! I have now been able to replicate it once or twice. Reloading the page will sometimes get deleted items to reappear. I’ll create an internal issue to look into this.

I’m glad you got it working correctly again @cloaked2222 - sorry that it was such a hassle though!


I experienced this bug on several repositories in late May/June. However as of 6/29, this issue appears to have been resolved for newly deleted pages. I also manually fixed most previously deleted pages, by recreating the pages, and then deleting them again.

I don’t think this bug was cache related. On this wiki, in late May/June I renamed all ~1000 pages. Almost all pages contained the text “Comments”. Doing a search on “Comments” yielded about 1500 results, including ~1000 pages and ~500 deleted pages. This search results bug persisted for weeks even on brand new searches until 6/29 when I was able to resolve it by recreating each page, and then deleting them again.