Swader / diffbot-php-client

[Deprecated - Maintenance mode - use APIs directly please!] The official Diffbot client library
MIT License
53 stars 20 forks source link

Number of results to return from search API #55

Closed felixbridell closed 7 years ago

felixbridell commented 7 years ago

Hi. I'm trying to use the search api to get all results from a crawl robot. In diffbots documentation I see that it's possible to use the num option (num=all) but how do I do that using the diffbot-php-client? I tried: $search = $diffbot->search('type:product AND num:all')->setCol($crawlName)->call(); and $search = $diffbot->search('type:product')->setCol($crawlName)->num('all')->call(); but no luck.

Swader commented 7 years ago

As per the docs, use setNum.