Modifying search filter to accomodate query matching