Page 1 of 1

How to programmatically set number of results per page ?

Posted: Mon Jan 07, 2008 11:42 am
by john.santangelo
Also - should we set the default Search Setting > Results per Page to the highest possible value we would issue programmatically?

How to programmatically set number of results per page ?

Posted: Mon Jan 07, 2008 3:34 pm
by mark
Currently only the admin can change the hits per page.

How to programmatically set number of results per page ?

Posted: Thu Apr 18, 2013 3:10 pm
by adelprado
I wonder if you could change the number of results per page now since this post was an old post...

the Search object has a resultsPerPage item but if I set it to anything, it ALWAYS get the value that is set by the admin on the server...it seems that it is not applying this programmatically...

How to programmatically set number of results per page ?

Posted: Thu Apr 18, 2013 3:24 pm
by mark
Yes. See "rpp" under "Issuing a Query Programmatically" documentation. Note that it is restricted by the Search setting "Max User Results per Page".

How to programmatically set number of results per page ?

Posted: Mon Apr 22, 2013 3:57 pm
by adelprado
Thanks, Mark for the answer. This is exactly what I am looking for.