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