var marklogic=require('marklogic');
var ins=marklogic.createDatabaseClient({'host':'localhost','port':'7010','user':'admin','password':'admin',});
var qb=marklogic.queryBuilder;
ins.documents.query(
qb.propertiesFragment(
qb.value("Author","Akhilesh Sabbisetti"))
).result(function(matches){
matches.forEach(function(match){
console.log(match.uri);
});
});
上面的代码应该只适用于文档的属性,但它不是那样工作的。我得到了不相关的结果。请更正我的代码....