cancel
Showing results for 
Search instead for 
Did you mean: 

Queries on Search function

bbdaffy
Champ in-the-making
Champ in-the-making

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 3

afaust
Legendary Innovator
Legendary Innovator

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
Champ in-the-making
Champ in-the-making

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
Legendary Innovator
Legendary Innovator

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