diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_showFoundText.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_showFoundText.xml
index 71e969dd69db2bc3369c736a4819406df782956d..c6e968ab275f5d5a2e8256a6bf598109c7f430b6 100644
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_showFoundText.xml
+++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_showFoundText.xml
@@ -76,11 +76,13 @@ maxlines=5\n
 txt=brain.getObject().SearchableText()\n
 st=selection.params.get(\'SearchableText\')\n
 if st is None:\n
-  return \'\'\n
+  # we should return something\n
+  return txt[min(len(txt)-300,200):500] # a somewhat arbitrary choice to trim searchable attrs\n
 args=context.parseSearchString(st)\n
 sw=args.get(\'SearchableText\')\n
-if sw is None:\n
-  return \'\'\n
+if sw is None or sw==\'\':\n
+  # we should return something\n
+  return txt[min(len(txt)-300,200):500] # a somewhat arbitrary choice to trim searchable attrs\n
 res=context.cutFound(context,txt,sw,tags,trail,maxlines)\n
 return \' \'.join(map(str,res))\n
 
@@ -136,6 +138,9 @@ return \' \'.join(map(str,res))\n
                             <string>txt</string>
                             <string>st</string>
                             <string>None</string>
+                            <string>_getitem_</string>
+                            <string>min</string>
+                            <string>len</string>
                             <string>context</string>
                             <string>args</string>
                             <string>sw</string>