Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-6349

Patch for changeable default operator of the Share full text search

    Details

    • Type: Contribution
    • Status: Closed (View Workflow)
    • 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

      Description

      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,

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                wadahiro Hiroyuki Wada (Inactive)
              • Votes:
                16 Vote for this issue
                Watchers:
                25 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: