admin.databaseSetTfNormalization( config as element(configuration), database-id as (Number|String), value as String ) as element(configuration)
This function specifies whether to use the default term-frequency
normalization (scaled-log
), which scales the term frequency based on the size of
the document, or to use the unscaled-log
, which uses term frequency as a function
of the actual term frequency in a document, regardless of the document size.
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/{id}
http://marklogic.com/xdmp/privileges/admin/database/index
http://marklogic.com/xdmp/privileges/admin/database/index/{id}
let admin = require("/MarkLogic/admin.xqy") let config = admin.getConfiguration() let db = admin.databaseGetId(config, "myDatabase") admin.databaseSetTfNormalization(config, db, "unscaled-log")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.