我正在使用 Alfresco Enterprise 6.2。与实时搜索类似,我正在为文档库中的文件夹创建搜索操作。
我已将 custom-actions.js 更新如下:
onActionSearch: function dla_onActionSearch(record){
window.open(Alfresco.constants.PAGECONTEXT +'dp/ws/faceted-search?', "_self");
}
我还在faceted-search.get.js
下面添加了文件夹范围。我对值进行了硬编码,folder1
只是为了测试它是否有效:
scopeOptions.push({
id: "FCTSRCH_SET_FOLDER_SCOPE",
name: "alfresco/menus/AlfCheckableMenuItem",
config: {
label: "folder",
value: "folder1",
group: "SEARCHLIST_SCOPE",
publishTopic: "ALF_SEARCHLIST_SCOPE_SELECTION",
checked: false,
hashName: "scope",
publishPayload: {
label: "folder",
value: "folder1"
}
}
});
但是,它在执行搜索时不考虑文件夹范围。相反,它将“文件夹 1”视为一个站点。如何在文件夹范围内正确执行搜索?