Migrating Elastic API from 2.4.6 to 5.6.3

Hi Team,

We are planning to migrate elastic search API from 2.4.6 to 5.6.3 in next quarter and we have observed below DFL bool query errors after changing elastic version from 2.4.6 to 5.6.3 in spring POM file.

  1. The method addFields(String) is undefined for the type SearchRequestBuilder
  2. DFS_QUERY_AND_FETCH cannot be resolved or is not a field
  3. Operator cannot be resolved or is not a field
  4. DateRangeBuilder cannot be resolved to a type
  5. Type mismatch: cannot convert from List<LongTerms.Bucket> to List<Terms.Bucket>
  6. The method filter(TermQueryBuilder) is undefined for the type FilterAggregationBuilder

Currently we are using shield 2.4.6.

I have below questions regarding above errors.

  1. do we have any equivalent methods to fix above errors in Version 2.4.6 itself so that it can be compatible for version 5.6.3 when we migrate from 2.4.6 to 5.6.3
  2. if we do not have compatible methods/fields in V2.4.6 then what be the equivalent methods/fields in V5.6.3
  3. currently we are using shield, does it compatible to V5.6.3? or we have to migrate to x-pack?

Thanks in advance for your replies.

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.