elasticsearch/docs/reference/migration/migrate_8_0/java-api-changes.asciidoc
James Rodewig 5061c460e6
[DOCS] Remove unneeded breaking changes files (#80729)
Removes some unneeded files related to the previous organization of breaking changes.

Relates to #79162 and https://github.com/elastic/stack-docs/pull/1877
2021-11-15 17:24:58 -05:00

55 lines
1.8 KiB
Text

[discrete]
[[breaking_80_java_api_changes]]
==== Java API changes
//NOTE: The notable-breaking-changes tagged regions are re-used in the
//Installation and Upgrade Guide
//tag::notable-breaking-changes[]
[[ilm-hlrc-rename]]
.The `indexlifecycle` package has been renamed `ilm` in the Java High Level REST Client.
[%collapsible]
====
*Details* +
In the high level REST client, the `indexlifecycle` package has been
renamed to `ilm` to match the package rename inside the {es} code.
*Impact* +
Update your workflow and applications to use the `ilm` package in place of
`indexlifecycle`.
====
.Changes to `Fuzziness`.
[%collapsible]
====
*Details* +
To create `Fuzziness` instances, use the `fromString` and `fromEdits` method
instead of the `build` method that used to accept both Strings and numeric
values. Several fuzziness setters on query builders (e.g.
MatchQueryBuilder#fuzziness) now accept only a `Fuzziness`instance instead of
an Object.
Fuzziness used to be lenient when it comes to parsing arbitrary numeric values
while silently truncating them to one of the three allowed edit distances 0, 1
or 2. This leniency is now removed and the class will throw errors when trying
to construct an instance with another value (e.g. floats like 1.3 used to get
accepted but truncated to 1).
*Impact* +
Use the available constants (e.g. `Fuzziness.ONE`, `Fuzziness.AUTO`) or build
your own instance using the above mentioned factory methods. Use only allowed
`Fuzziness` values.
====
.Changes to `Repository`.
[%collapsible]
====
*Details* +
Repository has no dependency on IndexShard anymore. The contract of restoreShard
and snapshotShard has been reduced to Store and MappingService in order to improve
testability.
*Impact* +
No action needed.
====
//end::notable-breaking-changes[]