Merged HEAD (5.2) to 5.2.N (5.2.1)

126601 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
      124919 jvonka: RA-767: Queries API - termMinLength can be optionally overridden
      - via spring bean override (ie. system-wide / static)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126946 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-05-11 12:15:10 +00:00
parent f8d4813192
commit 0981895b8e
2 changed files with 7 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ public class QueriesImpl implements Queries, InitializingBean
private final static String QUERY_LIVE_SEARCH_NODES = "live-search-nodes";
private final static int TERM_MIN_LEN = 3; // review: should this be configurable system-wide (&/or per-tenant in the cloud) ?
private static int TERM_MIN_LEN = 3;
private final static Map<String,QName> MAP_PARAM_SORT_QNAME;
@@ -95,6 +95,11 @@ public class QueriesImpl implements Queries, InitializingBean
this.sr = sr;
}
public void setTermMinLength(int termMinLength)
{
TERM_MIN_LEN = termMinLength;
}
public void setNodes(Nodes nodes)
{
this.nodes = nodes;