mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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/HEAD/root@126601 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user