The search method returns a results field which is just an array. If you are only interested in seeing the top 5 results, you can just grab the first five items from the array. Most languages have an easy way of doing this, in Ruby it's as simple as:
Reply by Travis Bell
on October 3, 2016 at 5:20 PM
Hi Ahmed,
The search method returns a
results
field which is just an array. If you are only interested in seeing the top 5 results, you can just grab the first five items from the array. Most languages have an easy way of doing this, in Ruby it's as simple as:Hope that helps.