String query = getQuery(params);
Integer siteId = getSiteId(params);
Integer channelId = getChannelId(params);
Date startDate = getStartDate(params);
Date endDate = getEndDate(params);
Pagination page;
try {
String path = realPathResolver.get(Constants.LUCENE_PATH);
page = luceneContentSvc.searchPage(path, query, siteId, channelId,
startDate, endDate, pageNo, count);
} catch (ParseException e) {
throw new RuntimeException(e);
}
Map<String, TemplateModel> paramWrap = new HashMap<String, TemplateModel>(
params);
paramWrap.put(OUT_PAGINATION, DEFAULT_WRAPPER.wrap(page));
paramWrap.put(OUT_LIST, DEFAULT_WRAPPER.wrap(page.getList()));
Map<String, TemplateModel> origMap = DirectiveUtils
.addParamsToVariable(env, paramWrap);
InvokeType type = DirectiveUtils.getInvokeType(params);
String listStyle = DirectiveUtils.getString(PARAM_STYLE_LIST, params);
if (InvokeType.sysDefined == type) {