admin.databaseElementAttributeWordLexicon( parent-namespace as String?, parent-localname as String, namespace as String?, localname as String, collation as String ) as element(db.elementAttributeWordLexicon)
This function constructs an element attribute word lexicon specification.
const admin = require('/MarkLogic/admin.xqy'); admin.databaseElementAttributeWordLexicon("my/namepsace", "elementname", "", "myAttribute", "http://marklogic.com/collation/" ) //returns the element attribute word lexicon specification