alfresco - 在一个露天项目中将 live-search-docs 配置文件放在哪里?

标签 alfresco alfresco-share alfresco-enterprise

我一直在浏览一些讲述如何自定义实时搜索的博客文章。我不清楚的是,我应该将 live-search-docs.get.config.xml 文件放在我的一体化共享项目中的哪里,以便它能够引导并部署在正确的位置。

请有人建议该文件应放置在我的一体化露天项目中的何处?

从下面的链接

https://www.bluefishgroup.com/insights/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-alfresco-5/

他们建议将搜索查询自定义文件放置在

These files can now be modified to add additional metadata fields as needed. Once the files have been updated, they should be deployed to the ‘extensions’ directory so that they will override the out of the box configuration. If you are deploying your code as a custom AMP file, the files should target the following directory:

tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search

如果我的文件需要在 WAR 中的上述路径中结束,我应该将搜索文件放置在我的一体化露天项目中的何处,以便将其部署到上述文件夹?我希望通过我的一体化项目来引导这一点。我尝试将文件放在 src/main/resources/alfresco/site-webscripts 下,并使用文件的剩余路径,但这不起作用。

谢谢

最佳答案

最简单的方法是在以下位置创建该文件的副本:

my-all-in-one-project-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/

当然,其中 my-all-in-one-project-platform-jar 必须替换为您在使用一体化原型(prototype)创建项目时指定的名称。

扩展子路径中的文件将覆盖相应的 OOTB 文件。

参见Web scripts

关于alfresco - 在一个露天项目中将 live-search-docs 配置文件放在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51061877/

相关文章:

alfresco - 如何使用 Open CMIS 获取 Aspect 特定属性

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

alfresco - 捕获 Alfresco 工作流任务重新分配并将其显示在工作流摘要中

javascript - 自动重命名文件夹 alfresco

alfresco - 工作流程: Setting default value for bpm:assignee

java - 用于 Alfresco Repository AMP 的 log4j

java - 露天版本和标签

log4j - 如何为 `log4j` 配置 `share-amp`

share - Alfresco Share是否有等效的FileTypeImageUtils?

java - 如何将 Alfresco 网页重定向到不同的响应页面