elastic / elasticsearch-java

Official Elasticsearch Java Client
Apache License 2.0
397 stars 228 forks source link

Fix field_masking_span to span_field_masking #808

Closed vdemay closed 1 month ago

vdemay commented 2 months ago

field_masking_span has been deprecated since ES8.0 in favor of span_field_masking. Ref: https://github.com/elastic/elasticsearch/pull/74718/files

This change is not reflected in Java API causing exception in ES >= 8.0: deprecated fields not supported here but got [field_masking_span] which has been replaced with [span_field_masking]

The following PR fix but also refactor FieldMaskingSpan* classes into SpanFieldMasking* classes probably causing some API breaks

cla-checker-service[bot] commented 2 months ago

❌ Author of the following commits did not sign a Contributor Agreement: 581f7f1ba415c617eb78906d2af6f4bacdd47a8f, bd45e45a5bdf7f71e136e07b58e3afbfb978d194

Please, read and sign the above mentioned agreement if you want to contribute to this project

l-trotta commented 1 month ago

closing this in favor of https://github.com/elastic/elasticsearch-specification/pull/2563