Skip to content

Search results very complex to browse #31

Closed
@pierrexp9

Description

@pierrexp9

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions