09-29-2011 09:20 AM
// search construct
var sort1 = {
column: "@{http://www.alfresco.org/model/content/1.0}created",
ascending: true
};
var paging = {
maxItems: 100,
skipCount: 0
};
var def = {
query: "@cm\\:created:[\"" + splitd1 + "*\" TO \"" + splitd2 +"*\"]",
store: "workspace://SpacesStore/"+item,
language: "fts-alfresco",
sort: [sort1],
page: paging
};
var candidates = search.query(def);
splitd1 and splitd2 are two date-strings that i have manipulated. One represents the actual time and the other represents a date one week before the actual time. @cm\:created:["2011\-09\-29*" TO "2011\-09\-22*"]09-30-2011 03:29 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.