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 > Synonyms

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

      2019-10-01 19:52:18.773 ERROR [http-nio-8080-exec-8][render_portlet_jsp:131] null
      java.lang.UnsupportedOperationException
      	at com.liferay.portal.search.solr7.internal.search.engine.adapter.index.GetIndexIndexRequestExecutorImpl.execute(GetIndexIndexRequestExecutorImpl.java:33)
      	at com.liferay.portal.search.solr7.internal.search.engine.adapter.index.SolrIndexRequestExecutor.executeIndexRequest(SolrIndexRequestExecutor.java:104)
      	at com.liferay.portal.search.engine.adapter.index.GetIndexIndexRequest.accept(GetIndexIndexRequest.java:31)
      	at com.liferay.portal.search.engine.adapter.index.GetIndexIndexRequest.accept(GetIndexIndexRequest.java:20)
      	at com.liferay.portal.search.solr7.internal.search.engine.adapter.SolrSearchEngineAdapterImpl.execute(SolrSearchEngineAdapterImpl.java:75)
      	at com.liferay.portal.search.tuning.synonyms.web.internal.synonym.SynonymIndexerImpl.getSynonymSets(SynonymIndexerImpl.java:52)
      	at com.liferay.portal.search.tuning.synonyms.web.internal.synonym.SynonymIndexerImpl.getSynonymSets(SynonymIndexerImpl.java:42)
      	at com.liferay.portal.search.tuning.synonyms.web.internal.display.context.SynonymsDisplayBuilder.buildSynonymSetDisplayContexts(SynonymsDisplayBuilder.java:109)
      	at com.liferay.portal.search.tuning.synonyms.web.internal.display.context.SynonymsDisplayBuilder.build(SynonymsDisplayBuilder.java:68)
      	at com.liferay.portal.search.tuning.synonyms.web.internal.portlet.SynonymsPortlet.render(SynonymsPortlet.java:71)
      	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)
      	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
      	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:115)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
      	at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
      	at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
      	at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
      	at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
      

       
      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:
                  7 weeks, 2 days ago

                  Packages

                  Version Package