Closed
Description
Hello MacJFA,
(using version 2.1.0)
I wanted to share with you that I find it very hard for a newcomer to simply browse the results of a search, this is the current method I use.
I do not really get why I have to get $results[0] to get to the actual results. (I could also do a $results->current() I suppose, but the problem stays the same).
/** @var PaginatedResponse $results */
$results = iterator_to_array($results);
$results = $results[0];
/** @var SearchResponseItem $result */
foreach ($results as $result) {
var_dump($result->getFields());
}
Also, thanks a million for your hard work on this library !