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

Result Rankings is unavailable with Solr

    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
      2. Navigate to Control Panel > Search Tuning > Result Rankings

      Actual result: "Portlet is temporarily unavailable" error appears on page and errors are thrown in the console.

      2019-10-01 19:23:47.626 ERROR [http-nio-8080-exec-4][render_portlet_jsp:131] null
      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>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
      <title>Error 404 Not Found</title>
      </head>
      <body><h2>HTTP ERROR 404</h2>
      <p>Problem accessing /solr/liferay-search-tuning-rankings/select. Reason:
      <pre>    Not Found</pre></p>
      </body>
      </html>
      
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:607)
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:255)
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:244)
      	at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:663)
      	at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:638)
      	at com.liferay.portal.search.solr7.internal.connection.ReadWriteSolrClient.request(ReadWriteSolrClient.java:60)
      	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:194)
      	at com.liferay.portal.search.solr7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.getQueryResponse(SearchSearchRequestExecutorImpl.java:86)
      	at com.liferay.portal.search.solr7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.execute(SearchSearchRequestExecutorImpl.java:60)
      	at com.liferay.portal.search.solr7.internal.search.engine.adapter.search.SolrSearchRequestExecutor.executeSearchRequest(SolrSearchRequestExecutor.java:58)
      	at com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:42)
      	at com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:35)
      	at com.liferay.portal.search.solr7.internal.search.engine.adapter.SolrSearchEngineAdapterImpl.execute(SolrSearchEngineAdapterImpl.java:87)
      	at com.liferay.portal.search.tuning.rankings.web.internal.request.SearchRankingRequest.search(SearchRankingRequest.java:77)
      	at com.liferay.portal.search.tuning.rankings.web.internal.display.context.RankingPortletDisplayBuilder._search(RankingPortletDisplayBuilder.java:348)
      	at com.liferay.portal.search.tuning.rankings.web.internal.display.context.RankingPortletDisplayBuilder.build(RankingPortletDisplayBuilder.java:78)
      	at com.liferay.portal.search.tuning.rankings.web.internal.portlet.ResultRankingsPortlet.render(ResultRankingsPortlet.java:75)
      	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:127)
      	at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:58)
      	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:124)
      

       

      Reproduced on:
      Portal master-private git commit: 67024c5c573b54606e8a0f7bf99b7fd3145cabbe
      Portal 7.2.x-private git commit: e496725cb2959402ae6edf0549ac1f9547fe5560

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                support-lep@liferay.com SE Support
                Reporter:
                joshua.chong Joshua Chong
                Participants of an Issue:
                Recent user:
                Annie Wu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  6 weeks, 5 days ago

                  Packages

                  Version Package