Hi, Sini:

As implied on the other thread, is it actually necessary to set the maximum 
dynamically to the estimate of the results?  An alternative would be to set it 
to the largest number of results you would be willing to retrieve in a single 
request.  If the total number of results is less than the maximum, your request 
will get all results.  If the total number of results is more than the maximum, 
you wouldn't want to get all of the results in a single request anyway.


Erik Hennum

________________________________
From: [email protected] 
[[email protected]] on behalf of sini narayanan 
[[email protected]]
Sent: Wednesday, March 20, 2013 2:31 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Dynamically update search:page-length using 
in-mem-update library

Hi All,


I have an xqy module, which dynamically gets the search:options from the 
application's v1/config/query/all file.
In the search:options, the page length is set to 10 by default.
<search:page-length>10</search:page-length>

How do I dynamically change the page-length to maximum possible results?

How do I use in-mem-update library to dynamically update the page-length?


Thanks,
Sini
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to