Ensure index exists