Skip to content

Commit

Permalink
[DOCS] Add impact sections to 8.0 java api breaking changes (#56510)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig authored May 15, 2020
1 parent fd812d2 commit 6e9100d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/reference/migration/migrate_8_0/java.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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.
====

0 comments on commit 6e9100d

Please sign in to comment.