Adds faceting to a query for the provided field by date.
(self, field, start_date, end_date, gap_by, gap_amount=1)
| 442 | return clone |
| 443 | |
| 444 | def date_facet(self, field, start_date, end_date, gap_by, gap_amount=1): |
| 445 | """Adds faceting to a query for the provided field by date.""" |
| 446 | clone = self._clone() |
| 447 | clone.query.add_date_facet( |
| 448 | field, start_date, end_date, gap_by, gap_amount=gap_amount |
| 449 | ) |
| 450 | return clone |
| 451 | |
| 452 | def query_facet(self, field, query): |
| 453 | """Adds faceting to a query for the provided field with a custom query.""" |