Returns the results received from the backend. If the query has not been run, this will execute the query and store the results.
(self, **kwargs)
| 660 | return self._hit_count |
| 661 | |
| 662 | def get_results(self, **kwargs): |
| 663 | """ |
| 664 | Returns the results received from the backend. |
| 665 | |
| 666 | If the query has not been run, this will execute the query and store |
| 667 | the results. |
| 668 | """ |
| 669 | if self._results is None: |
| 670 | if self._more_like_this: |
| 671 | # Special case for MLT. |
| 672 | self.run_mlt(**kwargs) |
| 673 | elif self._raw_query: |
| 674 | # Special case for raw queries. |
| 675 | self.run_raw(**kwargs) |
| 676 | else: |
| 677 | self.run(**kwargs) |
| 678 | |
| 679 | return self._results |
| 680 | |
| 681 | def get_facet_counts(self): |
| 682 | """ |