除了搜索 PPT、PDF 等二进制文件的内容之外,还有其他方法吗?
使用 xdmp:document-filter() 函数将其转换为 X HTML 格式并进行搜索?
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);
});
});
Run Code Online (Sandbox Code Playgroud)
上面的代码应该只适用于文档的属性,但它不是那样的.我得到了无关紧要的结果.请更正我的代码....