add a sort limit
This commit is contained in:
parent
c90df39ea3
commit
febb170c84
|
@ -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')
|
||||
|
|
Reference in New Issue