Hi David, To expand a little on Micah's response....
The Application Builder writes a set of search options out to configure the underlying REST API every time you redeploy. If you make the modification there, then if you redeploy from Application Builder, they'll be overwritten. If you never intend to redeploy from Application Builder, then using the provided REST interfaces for setting search options on the instance is perfectly fine. (/v1/config/query I think.) I think Micah's saying that the results widget page length overrides the setting in the search options....maybe he can confirm that. --Colleen ________________________________ From: [email protected] [[email protected]] on behalf of Micah Dubinko [[email protected]] Sent: Friday, November 01, 2013 3:16 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] increasing # of results on appbuilder built app David, You should try to not directly modify REST API internals like that. :) In this case, you probably want to reconfigure the results widget. To do so in a manner that survives redeployment, add this line to application/custom/app-config.js $.extend( controller_config, {pageLength:25}); There's no need to modify all.xml in this case, as the results widget uses its own config to control things. Thanks! -m On Nov 1, 2013, at 1:33 PM, "Steiner, David J. (LNG-DAY)" <[email protected]<mailto:[email protected]>> wrote: MarkLogic Server Enterprise Edition 6.0-2.3 Trying to display more than 10 results on AppBuilder generated app search page. Edited: http://ilabsmltest:8xxx/Default/appname/rest-api/options/all.xml<UrlBlockedError.aspx> Changed: <search:page-length>10</search:page-length> To: <search:page-length>50</search:page-length> But still get: 1 to 10 of XXXXXX Is there some other configuration change that needs to be made? Thanks, David _______________________________________________ General mailing list [email protected]<mailto:[email protected]> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
