rules for filtering by index