MarkLogic 10 Product Documentation
search.getDefaultOptions

search.getDefaultOptions() as element(search.options)

Summary

This function returns the default options XML. Default options do not contain any constraints or anything else that requires specific index settings.

Example

const search = require('/MarkLogic/appservices/search/search');

search.getDefaultOptions();

// ==>
// <search:options xmlns:search="http://marklogic.com/appservices/search">
// ... 
// </search:options>
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy