cancel
Showing results for 
Search instead for 
Did you mean: 

searching on preset creation date

tbee
Champ in-the-making
Champ in-the-making
I'm searching for a way to create a shortcut for the search instruction "any documents that we added today" or yesterday, or last week. I know I can do this using the advanced search screen, but I need a simple link.

1. Saving a search doesn't help, because the dates there are absolute ("march 6") and not relative ("today - 1").
2. The keyword search API would be great if I knew how to specify the creation date (http://localhost:8080/alfresco/service/api/search/keyword?q=20100306), but it only seems to do keywords.
3. I tried mimicking the advanced search page in separate HTML document and use preset values, but then I run into the JSF framework not swalling the request

Anyone got a hint on how to do custom preset searches?
2 REPLIES 2

sselvan
Champ in-the-making
Champ in-the-making
You might have to write a WebScript which will take input as your date; search and retrieve to get the results.
Also you might want a dashlet which would show the results.

Hope this helps!

tbee
Champ in-the-making
Champ in-the-making
You might have to write a WebScript which will take input as your date; search and retrieve to get the results.
Also you might want a dashlet which would show the results.

Agreed. I think the only way to go is to write a webscript myself, duplicating the keywords search functionality and extending it to allow for attribute search. There is an example in the webscript wiki on how to go about this. I'll attempt this tonight.