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_SYSPROP
insteadClass.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
was replaced byIOConsumer
.was replaced byIOFunction
.
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionUse
SpanishPluralStemFilter
instead.UseSpanishPluralStemFilterFactory
insteadUseSpanishPluralStemmer
instead.Fix the token filters that create broken offsets in the first place.UseWordDelimiterGraphFilter
instead: it produces a correct token graph so that e.g.PhraseQuery
works correctly when it's used in the search time analyzer.UseWordDelimiterGraphFilterFactory
instead: it produces a correct token graph so that e.g.PhraseQuery
works correctly when it's used in the search time analyzer.UseSynonymGraphFilter
instead, but be sure to also useFlattenGraphFilter
at index time (not at search time) as well.UseSynonymGraphFilterFactory
instead, but be sure to also useFlattenGraphFilterFactory
at index time (not at search time) as well.useKnnFloatVectorField
insteaduseFloatVectorValues
insteadUseFieldExistsQuery
instead.UseFieldExistsQuery
instead.useKnnFloatVectorQuery
insteadUseFieldExistsQuery
instead.This comparator is only a transition mechanism
-
Deprecated Enum Classes
-
Deprecated ExceptionsExceptionsDescription
-
Deprecated FieldsFieldDescriptionUse
JavascriptLexer.VOCABULARY
instead.UseJavascriptParser.VOCABULARY
instead.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_SYSPROP
insteadThis 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.