Adds filter for result groups