cancel
Showing results for 
Search instead for 
Did you mean: 

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

kartech11
Confirmed Champ
Confirmed Champ

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 2

douglascrp
World-Class Innovator
World-Class Innovator

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
Confirmed Champ
Confirmed Champ

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