Returns the facet counts found by the query. This will cause the query to execute and should generally be used when presenting the data.
(self)
| 541 | return clone |
| 542 | |
| 543 | def facet_counts(self): |
| 544 | """ |
| 545 | Returns the facet counts found by the query. |
| 546 | |
| 547 | This will cause the query to execute and should generally be used when |
| 548 | presenting the data. |
| 549 | """ |
| 550 | if self.query.has_run(): |
| 551 | return self.query.get_facet_counts() |
| 552 | else: |
| 553 | clone = self._clone() |
| 554 | return clone.query.get_facet_counts() |
| 555 | |
| 556 | def stats_results(self): |
| 557 | """ |