As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi ,
I am using alfresco community version V5.1.0 (r127059-b7).
I want to customize the default search, i,e: want to search with the document properties.
Please help.
Hi Dileep,
If you just want to add custom properties or add more properties in search, follow below steps :
1. Locate "alfresco-share-services-5.1.f" jar located at tomcat/webapps/alfresco/WEB-INF/lib
2. Copy search.get.config.xml at path alfresco\templates\webscripts\org\alfresco\slingshot\search and place it in extension\templates\webscripts\org\alfresco\slingshot\search
3. Edit search.get.config.xml file and add your custom properties to <default-query-template> tag
<search> <default-operator>AND</default-operator> <default-query-template>%(cm:name cm:title cm:description ia:whatEvent ia:descriptionEvent lnk:title lnk:description TEXT TAG)</default-query-template></search>
You can get detailed understanding on how this works at search custom properties?
Let me know if this is not what you are searching for.
Thanks,
Kalpesh
ContCentric
HI Kalpesh,
Thanks for your reply, but i can't find the path you specified can you please mention the exact path or should i create those paths ,.
alfresco\templates\webscripts\org\alfresco\slingshot\search
extension\templates\webscripts\org\alfresco\slingshot\search
Thanks & Regards
Dileep
Hi Kalpesh,
sorry , the source path i found and got that file search.get.config.xml.
The path that file to place i could not able to find (extension\templates\webscripts\org\alfresco\slingshot\search) can you please mention the exact path , or should i create this path ?
Dileep. O
For any customization/extension in Alfresco, your changes should be in <<ALFRESCO_HOME>>\tomcat\shared\classes\alfresco\extension for repo customization and <<ALFRESCO_HOME>>\tomcat\shared\classes\alfresco\web-extension for share customization. Alfresco will read customization as long as it is available in classpath. This mean, these path could be available in your jar files located in your lib folders.
So, exact path for your case will be <<ALFRESCO_HOME>>\tomcat\shared\classes\alfresco\extension\templates\webscripts\org\alfresco\slingshot\search\search.get.config.xml
Let me give it a shot on community version V5.1.0 (r127059-b7) and update you on this soon.
Thank you and waiting for your valuable reply.
For me, it is working with community version V5.1.0 (r127059-b7). Please ensure indexing to your custom property is full text. Can you follow the same process with one more custom properties from a fresh content model to ensure it is not malfunctioning due to error you may have encountered during development?