cancel
Showing results for 
Search instead for 
Did you mean: 

Search : Google like alerts

pvk
Champ in-the-making
Champ in-the-making
Is it possible to use a "Saved Search" as something "continuously" (probably, at regular interval) running in the background ?

The aim is for a user to immediately be informed of any document added to the repository that contain certain words for instance.

One way would be to receive a email as soon as a document that match a saved search is found, or it could be an RSS feed that one backup instead of a saved search.
3 REPLIES 3

davidc
Star Contributor
Star Contributor
One option is to use the OpenSearch API which can provide search results in RSS or ATOM format.  It's URL based, so can be plugged into most Feed Readers.

For Alfresco v2.0, documenation can be found here… http://wiki.alfresco.com/wiki/OpenSearch#Alfresco_Keyword_Search

pvk
Champ in-the-making
Champ in-the-making
That could be a good track to follow, and indeed,

feed://127.0.0.1:8080/alfresco/service/search/keyword?q=tata&format=rss

give me the expected result, BUT with its limitation : only documents visible by guest appears in the resulting feed.

How about creating a feed returning all the matching files accessible by a given user ?
Would that be possible ?

Well, after some more reading/testing, it looks like yes : the answer to the previous URL will depend on the id of the last user who log in the web client with the browser that will manage the RSS feed.

Next step then : right now, the RSS feed points directly to the file to open (without any information about the context of that file, who it belongs to, where is it located …)
Is it then possible to modifiy the template for that feed, in order to either include these data to point to the content page of the file within alfresco web client ?

I sort of have the feeling that the solution would have something to do with Web Scripts ( http://wiki.alfresco.com/wiki/Web_Scripts ) … that will be available only from version 2.1 of Alfresco …
Would that be right ?

davidc
Star Contributor
Star Contributor
The OpenSearch responses are template based which can be modified for your requirements.  I can't remember exactly where they're located, but look for anything named 'keywordsearch*.ftl' in the repository/config folder.

In v2.1, OpenSearch has been migrated to Web Scripts, which provides a convention for customising the associated templates.