From 6e9100d1813213b1572554d46ebb5898698c4f2a Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Fri, 15 May 2020 08:47:35 -0400 Subject: [PATCH] [DOCS] Add impact sections to 8.0 java api breaking changes (#56510) --- docs/reference/migration/migrate_8_0/java.asciidoc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/reference/migration/migrate_8_0/java.asciidoc b/docs/reference/migration/migrate_8_0/java.asciidoc index 3f6fe3d0abdf7..417fc2f07d57b 100644 --- a/docs/reference/migration/migrate_8_0/java.asciidoc +++ b/docs/reference/migration/migrate_8_0/java.asciidoc @@ -17,15 +17,18 @@ 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. You should preferably use the available constants (e.g. -Fuzziness.ONE, Fuzziness.AUTO) or build your own instance using the above -mentioned factory methods. +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). You should use one of the allowed values. +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`. @@ -35,4 +38,7 @@ accepted but truncated to 1). You should use one of the allowed values. 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. ====