gpt4 book ai didi

alfresco - 如何在 Alfresco 中创建搜索操作

转载 作者:行者123 更新时间:2023-12-03 14:42:28 25 4
gpt4 key购买 nike

我正在使用 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"
}
}
});

但是,它在执行搜索时不考虑文件夹范围。相反,它将“folder1”视为一个站点。如何在文件夹范围内正确执行搜索?

最佳答案

请检查下面的小部件,它始终将范围视为站点 ID。

https://dev.alfresco.com/resource/docs/aikau-jsdoc/AlfSearchList.js_.html

关于alfresco - 如何在 Alfresco 中创建搜索操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61950578/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com