
admin:database-field-path( $field-path as xs:string, $weight as xs:double ) as element(db:field-path)
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. |
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)