MarkLogic Server 11.0 Product Documentation
info:database-set-feature

info:database-set-feature(
   $database as xs:string,
   $settings as element(info:settings)
) as empty-sequence()

Summary

[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.

Parameters
database The name of the database to add or remove support of specified database feature. If a database that comes pre-configured with the server (other than the "Documents" database) is specified, then a "Restricted Database" exception will occur.
settings Settings XML representing desired database features to configure. Valid options are "wildcard", "position", "reverse". If an element is not specified, its setting remains unchanged. Note: if the incoming XML has a detail section (from a verbose call to get-feature) it is ignored.

Example

  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. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy