cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced search using Alfresco

midhun
Champ in-the-making
Champ in-the-making
Hi,
Could any one tell how the advanced  search   canbe done through  web sevice .
Basically  we are  trying to use  alfresco inside liferay portal  and we need  the advanced search option to be performed from Liferay  while the  contents are in alfresco repository .

Could managed to  get some simple query example, but  could not get advanced  search  query.

Could you share  detailed  about how to achieve this
3 REPLIES 3

openpj
Elite Collaborator
Elite Collaborator
You could create a Webscript exposed as a portlet on LifeRay.
If LifeRay is deployed in the same application server instance of Alfresco, you can expose Webscripts as portlets.

Then you can create two Webscripts:
- a Webscript to render a custom form to show all your custom params to use during a search;
- an other webscript that takes in input all the parameters from the first Webscript and submit the search and show the results.

In this example you can not use Web Service interface.

Otherwise you can implement in an easy way this feature implementing the same Webscripts but in a different way to send parameters.
You could create custom actions (Webscripts) that you can call from Web Service.
For more details:

http://forums.alfresco.com/en/viewtopic.php?f=27&t=16444#p54240

Hope this helps.

midhun
Champ in-the-making
Champ in-the-making
Thanks for  your reply . I have  one more quey  Smiley Indifferent 
1, Is it posible to diplay auditing  information from alfresco inside Liferay using webservice ?.Does webservice support auditing  and file  hit counter methods? to  call it from out side alfresco

openpj
Elite Collaborator
Elite Collaborator
Auditing in Alfresco is disabled by default , to enable it you can follow instructions here in the wiki:

http://wiki.alfresco.com/wiki/Audit_Configuration

Then you can create a custom Webscript to show auditing information (as you can see in the example in the wiki) as a Custom Action for your Web Service call, in the same way I suggest you in the previous reply.
But if LifeRay is installed in the same instance of the application server where you have deployed Alfresco, you can expose a Webscript (auditing informations) as a portlet in LifeRay without using Web Service calls :wink:

Hope this helps.