How to bundle search overrides into WEB-INF/classes/extension folder

cancel
Showing results for 
Search instead for 
Did you mean: 
kartech11
Active Member II

How to bundle search overrides into WEB-INF/classes/extension folder

In order to override live search , I have created two files under the below folder within the alfresco-share-jar folder within the AIO project

I have put the files under this folder 

alfresco-share-jar/src/main/resources/alfresco/extension/templates/webscripts/org/alfresco/singleshot/search/

FILES

live-search-docs.get.config.xml

search.get.config.xml

For alfresco tomcat server to pick up the overrides to search, the file should be under 

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

1.How should I have the extension folder deploy to WEB-INF/casses folder in tomcat? Do I need to modify the assembly.xml file if I am using an AMP?

2.If i don't want to use an AMP then how do I get this folder into the WEB-INF within the share WAR?

2 Replies
douglascrp
Advanced II

Re: How to bundle search overrides into WEB-INF/classes/extension folder

Hello.

Those files should be placed in the platform-jar project, and not in the share-jar.

They will change the way alfresco deals with the search before sending to share the result to be presented to the user.

kartech11
Active Member II

Re: How to bundle search overrides into WEB-INF/classes/extension folder

Thanks a lot for your help Douglas, works fine now after putting in platforms jar.