'Adds faceting to a query for the provided field by date.'

def date_facet(self, field, start_date, end_date, gap_by, gap_amount=1):

    clone = self._clone()
    clone.query.add_date_facet(field, start_date, end_date, gap_by, gap_amount=gap_amount)
    return clone
