@@ 268-278 (lines=11) @@ | ||
265 | return $scrollConfig; |
|
266 | } |
|
267 | ||
268 | public function findDocuments(Search $search): DocumentIterator |
|
269 | { |
|
270 | $results = $this->executeSearch($search); |
|
271 | ||
272 | return new DocumentIterator( |
|
273 | $results, |
|
274 | $this, |
|
275 | $this->converter, |
|
276 | $this->getScrollConfiguration($results, $search->getScroll()) |
|
277 | ); |
|
278 | } |
|
279 | ||
280 | public function findArray(Search $search): ArrayIterator |
|
281 | { |
|
@@ 280-290 (lines=11) @@ | ||
277 | ); |
|
278 | } |
|
279 | ||
280 | public function findArray(Search $search): ArrayIterator |
|
281 | { |
|
282 | $results = $this->executeSearch($search); |
|
283 | ||
284 | return new ArrayIterator( |
|
285 | $results, |
|
286 | $this, |
|
287 | $this->converter, |
|
288 | $this->getScrollConfiguration($results, $search->getScroll()) |
|
289 | ); |
|
290 | } |
|
291 | ||
292 | public function findRaw(Search $search): RawIterator |
|
293 | { |
|
@@ 292-302 (lines=11) @@ | ||
289 | ); |
|
290 | } |
|
291 | ||
292 | public function findRaw(Search $search): RawIterator |
|
293 | { |
|
294 | $results = $this->executeSearch($search); |
|
295 | ||
296 | return new RawIterator( |
|
297 | $results, |
|
298 | $this, |
|
299 | $this->converter, |
|
300 | $this->getScrollConfiguration($results, $search->getScroll()) |
|
301 | ); |
|
302 | } |
|
303 | ||
304 | private function executeSearch(Search $search): array |
|
305 | { |