Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-100156

Unable to search with Solr when portal-search-tuning modules are deployed (after installing SP1/FP2)

    Details

      Description

      Solution

      Search Tuning features are not supported on Solr. You must blacklist certain DXP features that only work with Elasticsearch.

      1. Create a configuration file named com.liferay.portal.bundle.blacklist.internal.BundleBlacklistConfiguration.config
      2. Give it these contents:
            blacklistBundleSymbolicNames=["com.liferay.portal.search.tuning.web.api","com.liferay.portal.search.tuning.web","com.liferay.portal.search.tuning.synonyms.web","com.liferay.portal.search.tuning.rankings.web"]
        
      3. Place the file in Liferay Home/osgi/configs.

      Steps to reproduce:

      1. Set up DXP Portal (master-private, 7.2.x-private) with Solr and portal-search-tuning modules deployed
      2. Perform a search on the home page

      Actual result: Search widgets are unavailable.

      Stacktrace in console:

           [exec] 13:07:42,933 ERROR [http-nio-8080-exec-6][render_portlet_jsp:131] null
           [exec] java.lang.RuntimeException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream but got text/html. <html>
           [exec] <head>
           [exec] <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
           [exec] <title>Error 404 Not Found</title>
           [exec] </head>
           [exec] <body><h2>HTTP ERROR 404</h2>
           [exec] <p>Problem accessing /solr/liferay-search-tuning-rankings/select. Reason:
           [exec] <pre>    Not Found</pre></p>
           [exec] </body>
           [exec] </html>
           [exec] 
           [exec] 	at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:607)
           [exec] 	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:255)
           [exec] 	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:244)
           [exec] 	at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:663)
           [exec] 	at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:638)
           [exec] 	at com.liferay.portal.search.solr7.internal.connection.ReadWriteSolrClient.request(ReadWriteSolrClient.java:60)
           [exec] 	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:194)
           [exec] 	at com.liferay.portal.search.solr7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.getQueryResponse(SearchSearchRequestExecutorImpl.java:86)
           [exec] 	at com.liferay.portal.search.solr7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.execute(SearchSearchRequestExecutorImpl.java:60)
           [exec] 	at com.liferay.portal.search.solr7.internal.search.engine.adapter.search.SolrSearchRequestExecutor.executeSearchRequest(SolrSearchRequestExecutor.java:58)
           [exec] 	at com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:45)
           [exec] 	at com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:37)
           [exec] 	at com.liferay.portal.search.solr7.internal.search.engine.adapter.SolrSearchEngineAdapterImpl.execute(SolrSearchEngineAdapterImpl.java:87)
           [exec] 	at com.liferay.portal.search.tuning.rankings.web.internal.index.RankingIndexReaderImpl.fetchByQueryStringOptional(RankingIndexReaderImpl.java:75)
           [exec] 	at com.liferay.portal.search.tuning.rankings.web.internal.searcher.RankingSearchRequestContributor.contribute(RankingSearchRequestContributor.java:43)
           [exec] 	at com.liferay.portal.search.internal.searcher.SearcherImpl.transform(SearcherImpl.java:55)
           [exec] 	at com.liferay.portal.search.internal.searcher.SearcherImpl.transformSearchRequest(SearcherImpl.java:259)
           [exec] 	at com.liferay.portal.search.internal.searcher.SearcherImpl.search(SearcherImpl.java:46)
           [exec] 	at com.liferay.portal.search.web.internal.search.request.SearchRequestImpl.search(SearchRequestImpl.java:72)
           [exec] 	at com.liferay.portal.search.web.internal.portlet.shared.search.PortletSharedSearchRequestImpl.doSearch(PortletSharedSearchRequestImpl.java:174)
      

      Reproduced on:
      Portal master-private Git commit: 186e3c335667f7d5c611b805cea1b29f92b7fe8c
      Portal 7.2.x-private Git commit: 5c1eba8c0b73ced2c06faa0002f2d3715d50646a

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 weeks ago

                  Packages

                  Version Package
                  7.2.X
                  Master