Fixing the problem with WikiSearch.rebuild_index