06-10-2008 05:19 PM
var totalResults = search.luceneSearch("(TEXT:***)");
model.resultset = totalResults;
The freemarker template does:<?xml version="1.0" encoding="UTF-8"?>
<list>
<#list resultset as doc>
<item>${doc.name}</item>
</#list>
</list>
06-12-2008 03:21 PM
06-15-2008 08:34 AM
function insertByDate(sortedResults, toAdd) {
// insert the element in the array at the right place
}
var totalResults = search.luceneSearch("(TEXT:***)");
var sortedResults = [];
for (i = 0; i < totalResults.length; i++) {
var result = totalResults[i];
sortedResults = insertByDate(sortedResults, result);
}
model.resultset = sortedResults;
06-23-2008 12:14 PM
var totalResults = search.luceneSearch("(TEXT:***)");
model.resultset = sortedResults;
by var totalResults = search.luceneSearch("(TEXT:***)");
model.resultset = totalResults.sort(sortModifiedDesc);
function sortModifiedDesc(thisObject, thatObject) {
var thisValue = thisObject.properties["modified"];
var thatValue = thatObject.properties["modified"];
if (thisValue > thatValue) {
return -1;
} else if (thisValue < thatValue) {
return 1;
}
return 0;
}
12-11-2008 06:54 AM
12-11-2008 09:52 AM
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.