Increase Number of Nodes Returned for Index

Events happening in the community are now at Drupal community events on www.drupal.org.
mytungsten's picture

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 =

kylebrowning's picture

  $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

princemishra's picture

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: