Loading TOC...

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)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.