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

            Hide
            loftux Peter Löfgren added a comment -

            Should have added that the patch is against 4.0.d source.

            Show
            loftux Peter Löfgren added a comment - Should have added that the patch is against 4.0.d source.
            Hide
            jsoria Jennie Soria added a comment -

            Customer cases have been added to MNT-10800. Not sure if this needs to be kept open, or closed as duplicate of MNT-10800. I would suggest closing as duplicate.

            Show
            jsoria Jennie Soria added a comment - Customer cases have been added to MNT-10800. Not sure if this needs to be kept open, or closed as duplicate of MNT-10800. I would suggest closing as duplicate.
            Hide
            heiko.robert Heiko Robert added a comment -

            @loftux: unfortunately this patch doesn't work for 4.2.f and needs some more research / more fixes.
            btw. it would be better to implement a configurable parameter and fantastic if Alfresco implements this as a missing important feature. To maintain patches like this over versions is no fun and very expensive.
            @Jennie Soria: feel free to add a new enhancement request if you'd like to close this ticket (MNT-10800 is not public).

            Show
            heiko.robert Heiko Robert added a comment - @loftux: unfortunately this patch doesn't work for 4.2.f and needs some more research / more fixes. btw. it would be better to implement a configurable parameter and fantastic if Alfresco implements this as a missing important feature. To maintain patches like this over versions is no fun and very expensive. @Jennie Soria: feel free to add a new enhancement request if you'd like to close this ticket (MNT-10800 is not public).
            Hide
            loftux Peter Löfgren added a comment -

            @Heiko A similar solution is implemented and available in Community HEAD. If you still need it for 4.2.f, it should work withs some changes as I have been using it with 4.2.e/f versions.

            Show
            loftux Peter Löfgren added a comment - @Heiko A similar solution is implemented and available in Community HEAD. If you still need it for 4.2.f, it should work withs some changes as I have been using it with 4.2.e/f versions.
            Hide
            resplin Richard Esplin added a comment -

            This issue was reported against a version of Alfresco Enterprise Edition that is in Limited Support. Alfresco Software will not implement further enhancements or improvements for products or versions in this support state. If this issue is impacting your deployment of Alfresco One Enterprise Edition, please contact support so that we can assist you. Customers with a support contract can request a bug fix in certain cases.

            Current releases of Alfresco contain many improvements that address old problems. We are closing old issues so that we can better prioritize our efforts.

            If you verify that the issue still exists in the latest release of Alfresco Community Edition, please reopen the issue. If you have any trouble reopening the issue, then leave a comment or email us at community@alfresco.com so that we can assist.

            Thank you for collaborating with us on improving Alfresco.

            Show
            resplin Richard Esplin added a comment - This issue was reported against a version of Alfresco Enterprise Edition that is in Limited Support. Alfresco Software will not implement further enhancements or improvements for products or versions in this support state. If this issue is impacting your deployment of Alfresco One Enterprise Edition, please contact support so that we can assist you. Customers with a support contract can request a bug fix in certain cases. Current releases of Alfresco contain many improvements that address old problems. We are closing old issues so that we can better prioritize our efforts. If you verify that the issue still exists in the latest release of Alfresco Community Edition, please reopen the issue. If you have any trouble reopening the issue, then leave a comment or email us at community@alfresco.com so that we can assist. Thank you for collaborating with us on improving Alfresco.

              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: