Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.1 EE SP3 (5.1.6), 5.2 EE SP1 (5.2.5)
-
All
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
- is related to
-
LPS-4079 BooleanQueryImpl is based on Lucene's "org.apache.lucene.search.BooleanQuery()". But it should be based on something that doesnt modify the query.
- Closed