| @@ 275-286 (lines=12) @@ | ||
| 272 | return $scrollConfig; |
|
| 273 | } |
|
| 274 | ||
| 275 | public function findDocuments(Search $search): DocumentIterator |
|
| 276 | { |
|
| 277 | $results = $this->executeSearch($search); |
|
| 278 | ||
| 279 | return new DocumentIterator( |
|
| 280 | $results, |
|
| 281 | $this, |
|
| 282 | $this->converter, |
|
| 283 | $this->serializer, |
|
| 284 | $this->getScrollConfiguration($results, $search->getScroll()) |
|
| 285 | ); |
|
| 286 | } |
|
| 287 | ||
| 288 | public function findArray(Search $search): ArrayIterator |
|
| 289 | { |
|
| @@ 288-299 (lines=12) @@ | ||
| 285 | ); |
|
| 286 | } |
|
| 287 | ||
| 288 | public function findArray(Search $search): ArrayIterator |
|
| 289 | { |
|
| 290 | $results = $this->executeSearch($search); |
|
| 291 | ||
| 292 | return new ArrayIterator( |
|
| 293 | $results, |
|
| 294 | $this, |
|
| 295 | $this->converter, |
|
| 296 | $this->serializer, |
|
| 297 | $this->getScrollConfiguration($results, $search->getScroll()) |
|
| 298 | ); |
|
| 299 | } |
|
| 300 | ||
| 301 | public function findRaw(Search $search): RawIterator |
|
| 302 | { |
|
| @@ 301-312 (lines=12) @@ | ||
| 298 | ); |
|
| 299 | } |
|
| 300 | ||
| 301 | public function findRaw(Search $search): RawIterator |
|
| 302 | { |
|
| 303 | $results = $this->executeSearch($search); |
|
| 304 | ||
| 305 | return new RawIterator( |
|
| 306 | $results, |
|
| 307 | $this, |
|
| 308 | $this->converter, |
|
| 309 | $this->serializer, |
|
| 310 | $this->getScrollConfiguration($results, $search->getScroll()) |
|
| 311 | ); |
|
| 312 | } |
|
| 313 | ||
| 314 | private function executeSearch(Search $search): array |
|
| 315 | { |
|