Type: Regression Bug
Affects Version/s: 7.0.2 CE GA3, 7.0.0 DXP SP2, 7.0.0 DXP FP13
com.liferay.portal.kernel.search.generic.StringQuery is meant to support "raw" searches means the input is not transformed, but parsed as-is by the underlying search engine connector.
However it does not override the accept method so it goes to BaseQueryImpl which returns null and this is generating incorrect search results depending on the way the StringQuery is used because the related StringQueryTranslator implementation(com.liferay.portal.search.solr.internal.query.StringQueryTranslatorImpl or com.liferay.portal.search.elasticsearch.internal.query.StringQueryTranslatorImpl is not invoked.
Steps to Test
- Create 2 wikis or blogs or whatever asset which has as a title field in the search index with title "java" and "eclipse"
- Create another asset with an arbitrary title
- Execute the following Groovy-script from the Server Admin:
Expected Result: Search Count = 2
Actual Result: Search Count = 0
Result is the same when using Solr.