searching on preset creation date

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2010 02:30 AM
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?
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?
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2010 06:36 AM
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!
Also you might want a dashlet which would show the results.
Hope this helps!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2010 06:57 AM
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.
