Details

    • Type: Technical Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Search Infrastructure
    • Labels:
      None

      Description

      Prerequisite: Use branch from LPS-115774 to update ES to 7.7, then run tests with "gw test ---tests [testname]".

      Description:
      The following tests in portal-search-elasticsearch7-impl fail. 

      com.liferay.portal.search.elasticsearch7.internal.sort.ElasticsearchSortUnmappedFieldsTest.testFirstNameIsTextMappingWithEmptyResults
      com.liferay.portal.search.elasticsearch7.internal.sort.ElasticsearchSortUnmappedFieldsTest.testSortableKeyword 
      com.liferay.portal.search.elasticsearch7.internal.sort.ElasticsearchSortUnmappedFieldsTest.testFirstNameOnNewIndex
      com.liferay.portal.search.elasticsearch7.internal.sort.ElasticsearchSortUnmappedFieldsTest.testSortableNumber
      com.liferay.portal.search.elasticsearch7.internal.sort.ElasticsearchSortUnmappedFieldsTest.testDefaultIsTextMappingWithEmptyResults
      

      The failure take the form of the following, full logs attached:

      ElasticsearchStatusException[Elasticsearch exception [type=search_phase_execution_exception, reason=all shards failed]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [dHw6thb7] in order to load field data by uninverting the inverted index. Note that this can use significant memory.]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [dHw6thb7] in order to load field data by uninverting the inverted index. Note that this can use significant memory.]];
              at org.elasticsearch.rest.BytesRestResponse.errorFromXContent(BytesRestResponse.java:177)
              at org.elasticsearch.client.RestHighLevelClient.parseEntity(RestHighLevelClient.java:1888)
              at org.elasticsearch.client.RestHighLevelClient.parseResponseException(RestHighLevelClient.java:1865)
              at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1622)
              at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1579)
              at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1549)
              at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1065)
              at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.getSearchResponse(SearchSearchRequestExecutorImpl.java:94)
              at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.execute(SearchSearchRequestExecutorImpl.java:66)
              at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.ElasticsearchSearchRequestExecutor.executeSearchRequest(ElasticsearchSearchRequestExecutor.java:59) 

      Expected Results: Tests should pass.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andre.oliveira André Ricardo Barreto de Oliveira
              Reporter:
              joshua.cords Joshua Cords
              Recent user:
              André Ricardo Barreto de Oliveira
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                34 weeks, 2 days ago

                  Packages

                  Version Package