As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var totalResults = search.luceneSearch("(TEXT:***)"); model.resultset = totalResults;
<?xml version="1.0" encoding="UTF-8"?> <list> <#list resultset as doc> <item>${doc.name}</item> </#list> </list>
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;
var totalResults = search.luceneSearch("(TEXT:***)"); model.resultset = sortedResults;
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; }