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.
Hello,
I am using Alfresco Community version 6. I want to ad custom type in live search suggestion.
How can i do that.
Thanks in Advance!
This blog post is still valid:
https://bluefishgroup.com/insights/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-alfresco-5/
Hi thanks for rply but this is for adding extra information about the results. but in search i need to search a content or folder of my custom type. Currently it is searching only cm:content and cm:folder.
@rasika_g From what i can understand, you want provide custom properties for live search. By default live search looks for keywords in "cm:name cm:title cm:description TEXT TAG". If you have custom properties defined as part of custom types/aspects, then you can configure those as well.
You need to extend the live-search/search webscript, try this and see if it works for your use case. see the details here:
https://github.com/Alfresco/share/tree/master/share-services/src/main/resources/alfresco/templates/webscripts/org/alfresco/slingshot/search
Extend and update live-search-docs.get.config.xml with your custom properties.
Example:
<search> <default-operator>AND</default-operator> <default-query-template>%(cm:name cm:title cm:description TEXT TAG demo:publisher demo:author)</default-query-template> </search>
Extend and update search.get.config.xml with your custom properties.
<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 demo:publisher demo:author)</default-query-template> </search>
hi Thanks for replay but it is not working .
I also tried by using https://www.seedim.com.au/customising-alfresco-live-search/ this way but some how it is also not working is there any other way you know.
Hi:
You can add TYPE:customtype or ASPECT:customaspect in your live search.
https://docs.alfresco.com/4.0/tasks/rm-search-specialtypes.html
Regards.
--C.