08-27-2018 04:11 AM
Hi,
I have the following use case that I am not sure whether can be achieved using any of Alfresco's API.
My team is currently developing a training application. We want to include a search textbox and button in our application. When the user enters his search string in our text box and click on the Search button, we want to send this search request to Alfresco application and display the search results in the Alfresco web ui. Is this possible to do and if so, how? Thanks.
Regards,
Lee
08-27-2018 04:20 AM
Sure it is possible - that is actually how advanced search in Alfresco Share works. The form input of the advanced search is turned into a JSON string and inserted as an argument to the URL for the search result page, which then processes that input and forwards it to the actual search operation. So you can build something similar where your search UI constructs the URL to the Share search result page...
08-27-2018 04:50 AM
Hi,
Thanks for replying so promptly. Are there any sample codes that I can reference to while I try it out? Appreciate your help.
Regards,
Lee
08-27-2018 06:50 AM
You mean, other than the source code of Alfresco, i.e. advsearch.js and configuration of search path?
There shouldn't be any need for any other samples...
Explore our Alfresco products with the links below. Use labels to filter content by product module.