Merged BRANCHES/DEV/V4.1-BUG-FIX to HEAD

41731: Fix for ALF-16002 - Dashlet - My Documents - I've recently modified - executes unlimited query. In SOLR unlimited (all sites query) is really unlimited, for Lucene it is not. Improved jscript Search debugging to correctly output limit value on query.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@41758 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2012-09-19 10:04:34 +00:00
parent ab6a5171cb
commit 3419b8cb35

View File

@@ -794,7 +794,7 @@ public class Search extends BaseScopableProcessorExtension
Collection<ScriptNode> set = null; Collection<ScriptNode> set = null;
if (logger.isDebugEnabled()) if (logger.isDebugEnabled())
logger.debug("query=" + sp.getQuery() + " limit=" + sp.getLimit()); logger.debug("query=" + sp.getQuery() + " limit=" + (sp.getLimitBy() != LimitBy.UNLIMITED ? sp.getLimit() : "none"));
// perform the search against the repo // perform the search against the repo
ResultSet results = null; ResultSet results = null;