use indexes for substring searches