Apply rules if group is set to true for the search request