The rows which have been returned by the search query. .. note:: If using the *acouchbase* API be sure to use ``async for`` when looping over rows. Returns: Iterable: Either an iterable or async iterable.
(self)
| 1250 | return "SearchResult:{}".format(self._request) |
| 1251 | |
| 1252 | def rows(self): |
| 1253 | """The rows which have been returned by the search query. |
| 1254 | |
| 1255 | .. note:: |
| 1256 | If using the *acouchbase* API be sure to use ``async for`` when looping over rows. |
| 1257 | |
| 1258 | Returns: |
| 1259 | Iterable: Either an iterable or async iterable. |
| 1260 | """ |
| 1261 | if isinstance(self._request, AsyncFullTextSearchRequest): |
| 1262 | return self.__aiter__() |
| 1263 | return self.__iter__() |
| 1264 | |
| 1265 | def metadata(self): |
| 1266 | """The meta-data which has been returned by the search query. |