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

[Elasticsearch 6] Failing functional tests: java.lang.ClassCastException: org.elasticsearch.index.query.BoolQueryBuilder cannot be cast to org.elasticsearch.index.query.QueryBuilder

    Details

      Description

      Some functional tests running over the newest version of LPS-112200-7.1.X under Elasticsearch 6 are failing with this error:

      01:25:05,791 WARN  [http-nio-8080-exec-10][ProxyMessageListener:88] java.lang.ClassCastException: org.elasticsearch.index.query.BoolQueryBuilder cannot be cast to org.elasticsearch.index.query.QueryBuilder
      java.lang.ClassCastException: org.elasticsearch.index.query.BoolQueryBuilder cannot be cast to org.elasticsearch.index.query.QueryBuilder
      	at com.liferay.portal.search.elasticsearch7.internal.facet.DefaultFacetTranslator.translateBooleanClause(DefaultFacetTranslator.java:154)
      	at com.liferay.portal.search.elasticsearch7.internal.facet.DefaultFacetTranslator.translateFacetQuery(DefaultFacetTranslator.java:165)
      	at com.liferay.portal.search.elasticsearch7.internal.facet.DefaultFacetTranslator.translate(DefaultFacetTranslator.java:74)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.CommonSearchRequestBuilderAssemblerImpl.setFacets(CommonSearchRequestBuilderAssemblerImpl.java:225)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.CommonSearchRequestBuilderAssemblerImpl.assemble(CommonSearchRequestBuilderAssemblerImpl.java:70)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchRequestAssemblerImpl.assemble(SearchSearchRequestAssemblerImpl.java:60)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.execute(SearchSearchRequestExecutorImpl.java:50)
      	at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.ElasticsearchSearchRequestExecutor.executeSearchRequest(ElasticsearchSearchRequestExecutor.java:59)
      	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.elasticsearch7.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:90)
      	at com.liferay.portal.search.elasticsearch7.internal.ElasticsearchIndexSearcher.search(ElasticsearchIndexSearcher.java:131)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        [...]
      

      Examples from brandizzi#170:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              adam.brandizzi Adam Brandizzi
              Reporter:
              adam.brandizzi Adam Brandizzi
              Engineering Assignee:
              SE Support
              Recent user:
              Adam Brandizzi
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package