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

Where to put the live-search-docs config file in all in one alfresco project?

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

有人可以告诉我应该将文件放在我的一体式露天项目中的什么地方吗?

来自下面的link

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 必须替换为您在使用一体化原型创建项目时指定的名称。

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

Web scripts