1
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);
});
});
上面的代碼應該只適用於文檔的屬性,但它不能像那樣工作。我得到了不相關的結果。請糾正我的代碼....在MarkLogic中搜索文檔屬性的節點代碼
您可以使用兩個非常小的文檔再現案例,並與我們分享? – grtjn