add a sort limit

This commit is contained in:
Frédéric Péters 2011-11-15 16:37:23 +01:00
parent c90df39ea3
commit febb170c84
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class SearchForm(form.Form):
return catalog(
portal_type=['Document', 'File', 'Folder', 'Link'],
SearchableText=data.get('SearchableText'),
sort_on='created', sort_order='descending')
sort_on='created', sort_order='descending', sort_limit=20)
def doc_results(self):
catalog = getToolByName(self.context, 'portal_catalog')