
info:database-set-feature( $database as xs:string, $settings as element(info:settings) ) as empty-sequence()
[DEPRECATED] This function adds or removes the related database settings for wildcarding, word positions, and/or reverse search. Not specifying a feature will leave it in its current state.
xquery version "1.0-ml";
import module namespace info = "http://marklogic.com/appservices/infostudio"
at "/MarkLogic/appservices/infostudio/info.xqy";
info:database-set-feature("Documents",
<settings xmlns="http://marklogic.com/appservices/infostudio">
<wildcard>true</wildcard>
<position>true></position>
<reverse>false</reverse>
</settings> )
(: Turn on 3 character wildcard, the codepoint word lexicon, word positions,
and 3 character word position. It will turn off reverse search. :)