long time=System.currentTimeMillis();
AddionalAttrs.setAddionalAttrs(contextBytes,contextPassages,contextHighlightBegin,contextHighlightEnd);
try {
for(int i=0;i<collections.length;i++) {
collection=collections[i];
startrow=collection.search(data,qry,criteria,collection.getLanguage(),type,startrow,maxrows,categoryTree,category);
if(maxrows>=0 && qry.getRecordcount()>=maxrows) break;
}
pageContext.setVariable(name,qry);
}