fix prune_index to work with Xapian by using SearchQuerySet for iteration rather than the backend directly