# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

- Deprecated Classes
  Class and Description
  org.apache.lucene.store.RAMDirectory This class uses inefficient synchronization and is discouraged in favor of `MMapDirectory`. It will be removed in future versions of Lucene.
  org.apache.lucene.store.RAMFile This class uses inefficient synchronization and is discouraged in favor of `MMapDirectory`. It will be removed in future versions of Lucene.
  org.apache.lucene.store.RAMInputStream This class uses inefficient synchronization and is discouraged in favor of `MMapDirectory`. It will be removed in future versions of Lucene.
  org.apache.lucene.store.RAMOutputStream This class uses inefficient synchronization and is discouraged in favor of `MMapDirectory`. It will be removed in future versions of Lucene.

- Deprecated Fields
  Field and Description
  org.apache.lucene.search.FuzzyQuery.defaultMinSimilarity pass integer edit distances instead.
  org.apache.lucene.util.Version.LUCENE_7_0_0 (8.0.0) Use latest
  org.apache.lucene.util.Version.LUCENE_7_0_1 Use latest
  org.apache.lucene.util.Version.LUCENE_7_1_0 Use latest
  org.apache.lucene.util.Version.LUCENE_7_2_0 Use latest
  org.apache.lucene.util.Version.LUCENE_7_2_1 Use latest
  org.apache.lucene.util.Version.LUCENE_7_3_0 Use latest
  org.apache.lucene.util.Version.LUCENE_7_3_1 Use latest
  org.apache.lucene.util.Version.LUCENE_7_4_0 Use latest
  org.apache.lucene.util.Version.LUCENE_7_5_0 Use latest
  org.apache.lucene.util.Version.LUCENE_7_6_0 Use latest
  org.apache.lucene.util.Version.LUCENE_7_7_0 Use latest
  org.apache.lucene.util.Version.LUCENE_7_7_1 Use latest
  org.apache.lucene.util.Version.LUCENE_CURRENT Use `Version.LATEST`
  org.apache.lucene.util.Constants.LUCENE_MAIN_VERSION Use `Version.LATEST`
  org.apache.lucene.util.Constants.LUCENE_VERSION Use `Version.LATEST`

- Deprecated Methods
  Method and Description
  org.apache.lucene.search.FuzzyQuery.floatToEdits(float, int) pass integer edit distances instead.
  org.apache.lucene.util.CharsRef.getUTF16SortedAsUTF8Comparator() This comparator is only a transition mechanism
  org.apache.lucene.util.SloppyMath.haversinKilometers(double, double, double, double) Use `instead`
  org.apache.lucene.util.IOUtils.reThrow(Throwable) This method is deprecated in favor of `IOUtils.rethrowAlways(java.lang.Throwable)`. Code should be updated to `IOUtils.rethrowAlways(java.lang.Throwable)` and guarded with an additional null-argument check (because `IOUtils.rethrowAlways(java.lang.Throwable)` is not accepting null arguments).
  org.apache.lucene.util.IOUtils.reThrowUnchecked(Throwable) This method is deprecated in favor of `IOUtils.rethrowAlways(java.lang.Throwable)`. Code should be updated to `IOUtils.rethrowAlways(java.lang.Throwable)` and guarded with an additional null-argument check (because `IOUtils.rethrowAlways(java.lang.Throwable)` is not accepting null arguments).

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.