Hello I am currently using search api and I want to get the top five result from search query How I can get that result in search Api
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Travis Bell
el 3 de octubre de 2016 a las 17:20
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.