Increase Number of Nodes Returned for Index

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by mytungsten on January 17, 2012 at 4:41pm

I noticed that the index request for nodes returns 20 results on a page. While I can go through multiple pages of values to get all results, it would be preferred if I could tell it that I would like all of the results on a single page. I am wondering if there is a value I can pass in the request to return more than 20 results at a time.

Comments

$default_limit =

Posted by kylebrowning on January 23, 2012 at 8:48pm
$default_limit = variable_get("services_{$resource}_index_page_size", 20);

is used to determine the default limit, try changing that in you drupal site and it should return more.

You can also give them the permission

if (!user_access('perform unlimited index queries') && $page_size > $default_limit) {

and pass in a $page_size

I got that working

Posted by princemishra on January 26, 2012 at 3:09pm

http://domain/?q=api/khatta.json&pagesize=100
Passing the pagesize in parameters does the trick.

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /