Thanks.
>From what I understood, I can only specify pageSize but not offset.
What if I only want back results starting from 51th entry to 60th entry?
Do i have to first fetch results from 1st-49th entry and then from 51st to
60th.
Its like giving
-- pagesize=50 for the 1st time
and
-- pagesize=10 the second time
Please correct me if I am wrong.
On Tue, Nov 11, 2014 at 11:56 PM, Emmanuel Lécharny <elecharny@gmail.com>
wrote:
> Le 11/11/14 19:07, Neha Rawat a écrit :
> > Hello,
> >
> > Is it possible to get the results by page number? Say I execute a query
> and
> > specify an Offset and page size, and I get the results starting from that
> > offest.
>
> Absolutely. We do support the PagedSearch control. You have some JNDI
> samples here :
>
>
> http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PagedSearchIT.java?revision=1509635&view=markup
>
>
>
--
Love and Luck,
Neha
|