-
Type:
Contribution
-
Status: Closed
-
Priority:
Critical
-
Resolution: Won't Fix
-
Affects Version/s: 3.4 Enterprise
-
Fix Version/s: None
-
Component/s: Repository
-
Security Level: external (External user)
-
Labels:None
-
Environment:Alfresco 3.4.x / 4.0.x
The Share full text search is like google, but the default operator is "OR". According to google basic search principles, the default operator is "AND".
It would be nice if the search in Alfresco works the same.
I created a patch for supporting chageable default operator.
By applying this patch, you can change default operator in "alfresco/WEB-INF/classes/alfresco/script-service-context.xml" as follows.
<bean id="searchScript" parent="baseJavaScriptExtension" class="org.alfresco.repo.jscript.Search">
<property name="extensionName">
<value>search</value>
</property>
<property name="serviceRegistry">
<ref bean="ServiceRegistry"/>
</property>
<property name="repositoryHelper">
<ref bean="repositoryHelper"/>
</property>
<property name="storeUrl">
<value>${spaces.store}</value>
</property>
<property name="defaultOperator">
<value>AND</value>
</property>
</bean>
Thank you,
- relates to
-
MNT-2797 Share forms selectmany.ftl template does not work with Share search query parser; should do a logical OR or AND but does a concatenation
- Closed