MarkLogic Server 11.0 Product Documentation
admin:database-field-path

admin:database-field-path(
   $field-path as xs:string,
   $weight as xs:double
) as element(db:field-path)

Summary

This function is a constructor for field-path element. The field path element is used to construct a field.

Parameters
field-path A valid XPath expression.
weight The path weight used in relevance calculations.

Example



xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

admin:database-field-path("/a/b", xs:double(2.0))
=>
  returns element(db:field-path)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy