Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionreplaced by
TokenInfoDictionary(Path, Path, Path, Path)for files andTokenInfoDictionary(URL, URL, URL, URL)for classpath/module resourcesreplaced byUnknownDictionary(Path, Path, Path)for files andUnknownDictionary(URL, URL, URL)for classpath/module resourcesreplaced byConnectionCosts(Path)for files andConnectionCosts(URL)for classpath/module resources.replaced byTokenInfoDictionary(Path, Path, Path, Path)for files andTokenInfoDictionary(URL, URL, URL, URL)for classpath/module resourcesreplaced byUnknownDictionary(Path, Path, Path)for files andUnknownDictionary(URL, URL, URL)for classpath/module resourcesClass.getResourceAsStream(String)is caller sensitive and cannot load resources across Java Modules. Please call thegetResourceAsStream()andWordlistLoader.getWordSet(Reader, String, CharArraySet)or other methods directly.Please use new system propertyMMapDirectory.ENABLE_UNMAP_HACK_SYSPROPinsteadClass.getResourceAsStream(String)is caller sensitive and cannot load resources across Java Modules. Please call thegetResourceAsStream()directly and useIOUtils.requireResourceNonNull(Object,String)to signal missing resourcesnullwas replaced byIOConsumer.was replaced byIOFunction.
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionUse
SpanishPluralStemFilterinstead.UseSpanishPluralStemFilterFactoryinsteadUseSpanishPluralStemmerinstead.Fix the token filters that create broken offsets in the first place.UseWordDelimiterGraphFilterinstead: it produces a correct token graph so that e.g.PhraseQueryworks correctly when it's used in the search time analyzer.UseWordDelimiterGraphFilterFactoryinstead: it produces a correct token graph so that e.g.PhraseQueryworks correctly when it's used in the search time analyzer.UseSynonymGraphFilterinstead, but be sure to also useFlattenGraphFilterat index time (not at search time) as well.UseSynonymGraphFilterFactoryinstead, but be sure to also useFlattenGraphFilterFactoryat index time (not at search time) as well.useKnnFloatVectorFieldinsteaduseFloatVectorValuesinsteadUseFieldExistsQueryinstead.UseFieldExistsQueryinstead.useKnnFloatVectorQueryinsteadUseFieldExistsQueryinstead.This comparator is only a transition mechanism
-
Deprecated Enum Classes
-
Deprecated ExceptionsExceptionsDescription
-
Deprecated FieldsFieldDescriptionUse
JavascriptLexer.VOCABULARYinstead.UseJavascriptParser.VOCABULARYinstead.Will be removed in a future version. Please useSortedSetDocValues.docValueCount()to know the number of doc values for the current document up-front.Better use little endian unless it is needed for backwards compatibility.Better use little endian unless it is needed for backwards compatibility.Better use little endian unless it is needed for backwards compatibility.Better use little endian unless it is needed for backwards compatibility.Better use little endian unless it is needed for backwards compatibility.This comparator is only a transition mechanismTo detect Java versions useRuntime.version()This constant is useless and alwaystrue. To detect Java versions useRuntime.version()This constant is useless and alwaystrue. To detect Java versions useRuntime.version()This constant is useless and alwaystrue. To detect Java versions useRuntime.version()To detect Java versions useRuntime.version()To detect Java versions useRuntime.version()(9.0.0) Use latestUse latestUse latestUse latestUse latest(8.11.1) Use latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latestUse latest(9.1.0) Use latest(9.2.0) Use latest(9.3.0) Use latest(9.4.0) Use latest(9.5.0) Use latestUse latestUse latestUseVersion.LATEST
-
Deprecated MethodsMethodDescription
Class.getResourceAsStream(String)is caller sensitive and cannot load resources across Java Modules. Please call thegetResourceAsStream()andWordlistLoader.getWordSet(Reader, String, CharArraySet)or other methods directly.useIndexReader.storedFields()to retrieve one or more documentsuseIndexReader.storedFields()to retrieve one or more documentsuseIndexReader.storedFields()to retrieve one or more documentsuseIndexReader.termVectors()to retrieve one or more documentsuseIndexReader.termVectors()to retrieve one or more documentsUseIndexSearcher.storedFields()to access fields for one or more documentsUseIndexSearcher.storedFields()to access fields for one or more documentsUseIndexSearcher.storedFields()to access fields for one or more documentsset this using a constructor insteadThis is a duplicate method forSortField#getOptimizeSortWithIndexedData.should only be used for compatibility with 8.x indices that got created with inconsistent data across fields, or the wrong sort configuration in the index sortshould only be used for compatibility with 8.x indices that got created with inconsistent data across fields, or the wrong sort configuration in the index sort. This is a duplicate method forSortField#setOptimizeSortWithIndexedData.org.apache.lucene.search.uhighlight.UnifiedHighlighter.shouldPreferPassageRelevancyOverSpeed(String) This information is no longer reliable now that preloading is more granularly configured via a predicate.UseMMapDirectory.setPreload(BiPredicate)instead which provides more granular control.Please use new system propertyMMapDirectory.ENABLE_UNMAP_HACK_SYSPROPinsteadThis comparator is only a transition mechanismClass.getResourceAsStream(String)is caller sensitive and cannot load resources across Java Modules. Please call thegetResourceAsStream()directly and useIOUtils.requireResourceNonNull(Object,String)to signal missing resourcesnull
-
Deprecated ConstructorsConstructorDescriptionreplaced by
ConnectionCosts(Path)for files andConnectionCosts(URL)for classpath/module resources.replaced byTokenInfoDictionary(Path, Path, Path, Path)for files andTokenInfoDictionary(URL, URL, URL, URL)for classpath/module resourcesreplaced byUnknownDictionary(Path, Path, Path)for files andUnknownDictionary(URL, URL, URL)for classpath/module resourcesreplaced byConnectionCosts(Path)for files andConnectionCosts(URL)for classpath/module resources.replaced byTokenInfoDictionary(Path, Path, Path, Path)for files andTokenInfoDictionary(URL, URL, URL, URL)for classpath/module resourcesreplaced byUnknownDictionary(Path, Path, Path)for files andUnknownDictionary(URL, URL, URL)for classpath/module resourcesuseMMapDirectory(Path, long)instead.useMMapDirectory(Path, LockFactory, long)instead.
-
Deprecated Enum Constants
ConnectionCosts(Path)for files andConnectionCosts(URL)for classpath/module resources.