mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +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:
@@ -535,6 +535,7 @@
|
|||||||
<bean id="queries" class="org.alfresco.rest.api.impl.QueriesImpl">
|
<bean id="queries" class="org.alfresco.rest.api.impl.QueriesImpl">
|
||||||
<property name="nodes" ref="nodes"/>
|
<property name="nodes" ref="nodes"/>
|
||||||
<property name="serviceRegistry" ref="ServiceRegistry"/>
|
<property name="serviceRegistry" ref="ServiceRegistry"/>
|
||||||
|
<property name="termMinLength" value="3"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="Queries" class="org.springframework.aop.framework.ProxyFactoryBean">
|
<bean id="Queries" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||||
|
@@ -72,7 +72,7 @@ public class QueriesImpl implements Queries, InitializingBean
|
|||||||
|
|
||||||
private final static String QUERY_LIVE_SEARCH_NODES = "live-search-nodes";
|
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;
|
private final static Map<String,QName> MAP_PARAM_SORT_QNAME;
|
||||||
@@ -95,6 +95,11 @@ public class QueriesImpl implements Queries, InitializingBean
|
|||||||
this.sr = sr;
|
this.sr = sr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setTermMinLength(int termMinLength)
|
||||||
|
{
|
||||||
|
TERM_MIN_LEN = termMinLength;
|
||||||
|
}
|
||||||
|
|
||||||
public void setNodes(Nodes nodes)
|
public void setNodes(Nodes nodes)
|
||||||
{
|
{
|
||||||
this.nodes = nodes;
|
this.nodes = nodes;
|
||||||
|
Reference in New Issue
Block a user