For instance, with the JavaScript API, you can use
.setResultSetSize(1)
or .setResultSetSize(6)
in addition to using the enum to request a SMALL_RESULTSET
or LARGE_RESULTSET
. When using the RESTful interface, you can also use any integer from 1 to 8 with the rsz
parameter.With this addition, you can now request an arbitrary number of results, based on the exact number you need. By requesting only the results you’re going to show to the end-user, you can make your site or app more efficient. Also, this will control the cursor values that can be used to retrieve subsequent pages of results (and impact paging in the Custom Search element).
For more details, check out the documentation, and if you have any questions, stop by our IRC channel and support forum.
Hiç yorum yok:
Yorum Gönder