Refactor inspect_search_vectors