Add .where method for filtering index results