Hi all,
I’ve been trying to get search to work on my site, but it keeps throwing errors, which are really unhelpful as they suggest that there is a result when I’m guessing there is none.
Here’s what I am trying:
$my_itemRepresentation = $this->api()->search(‘items’, [‘title’=>‘Malaysia’])->getContent();
I’m not a php guru by any stretch, but I am wondering why that returns nothing when this does:
$itemRepresentation = $this->api()->read(‘items’, 655)->getContent();
Am I forced to use the item number?
Also, I am quite frustrated with the lack of working code examples in the documentation. There’s seems to be a lot a built in expectation of expertise that a lot of users won’t have.