Ensuring indexes for search