| 1234567891011121314151617181920212223242526272829303132333435 | [float][[breaking_80_java_changes]]=== Java API changes//NOTE: The notable-breaking-changes tagged regions are re-used in the//Installation and Upgrade Guide//tag::notable-breaking-changes[]// end::notable-breaking-changes[][float]==== Changes to FuzzinessTo create `Fuzziness` instances, use the `fromString` and `fromEdits` methodinstead of the `build` method that used to accept both Strings and numericvalues. Several fuzziness setters on query builders (e.g.MatchQueryBuilder#fuzziness) now accept only a `Fuzziness`instance instead ofan Object. You should preferably use the available constants (e.g.Fuzziness.ONE, Fuzziness.AUTO) or build your own instance using the abovementioned factory methods.Fuzziness used to be lenient when it comes to parsing arbitrary numeric valueswhile silently truncating them to one of the three allowed edit distances 0, 1or 2. This leniency is now removed and the class will throw errors when tryingto construct an instance with another value (e.g. floats like 1.3 used to getaccepted but truncated to 1). You should use one of the allowed values.[float]==== Changes to RepositoryRepository has no dependency on IndexShard anymore. The contract of restoreShardand snapshotShard has been reduced to Store and MappingService in order to improvetestability.
 |