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.
- The method addFields(String) is undefined for the type SearchRequestBuilder
- DFS_QUERY_AND_FETCH cannot be resolved or is not a field
- Operator cannot be resolved or is not a field
- DateRangeBuilder cannot be resolved to a type
- Type mismatch: cannot convert from List<LongTerms.Bucket> to List<Terms.Bucket>
- 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.
- 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
- if we do not have compatible methods/fields in V2.4.6 then what be the equivalent methods/fields in V5.6.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.