Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1185

Stop words are always removed from search queries

Details

    Description

      Stop words (e.g. the, a, and, are, with) are always removed from search queries because Lucene and Solr expect these words to be remove. However, other search engines may expect the full query.

      If a search engine other then Lucene or Solr is used, the following XML should be added to ext-spring.xml to so that the full search query is given to the search engine.

      <bean id="com.liferay.portal.kernel.search.BooleanQueryFactoryUtil" class="com.liferay.portal.kernel.search.BooleanQueryFactoryUtil">
      <property name="booleanQueryFactory">
      <bean class="com.liferay.portal.search.generic.BooleanQueryFactoryImpl" />
      </property>
      </bean>
      <bean id="com.liferay.portal.kernel.search.TermQueryFactoryUtil" class="com.liferay.portal.kernel.search.TermQueryFactoryUtil">
      <property name="termQueryFactory">
      <bean class="com.liferay.portal.search.generic.TermQueryFactoryImpl" />
      </property>
      </bean>

      Attachments

        Issue Links

          Activity

            People

              support-ee EE Support
              samuel.kong Samuel Kong
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.1 EE SP4 (5.1.7)
                  5.2 EE SP2 (5.2.6)