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