Queries on Search function

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

Queries on Search function

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

3 Replies
afaust
Master

Re: Queries on Search function

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...

bbdaffy
Member II

Re: Queries on Search function

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

afaust
Master

Re: Queries on Search function

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...