+1 to common filters and filtering mechanisms existing as functions either in a layer just below the controller or in the elasticsearch layer already provided for most models.