Deprecated API
Contents
- Terminally Deprecated
- Interfaces
- Classes
- Exception Classes
- Fields
- Methods
- Constructors
- Enum Constants
-
Terminally Deprecated ElementsElementDescription
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.UseKeywordField.newSetQuery(String, Collection)
instead.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
KnnFloatVectorField
insteaduseFloatVectorValues
insteadUseFieldExistsQuery
instead.UseFieldExistsQuery
instead.useKnnFloatVectorQuery
insteadUseFieldExistsQuery
instead.UseIndexSearcher.setTimeout(QueryTimeout)
to time out queries.This class was made public for internal reasons (instanceof
checks). InMMapDirectory
it was replaced byMemorySegment
basedIndexInput
implementations and will be no longer required in Lucene 10.Visibility of this class will be reduced in a future release. Users can access this functionality directly throughAutomata.makeStringUnion(Iterable)
-
Deprecated Exception ClassesException ClassDescription
-
Deprecated FieldsFieldDescriptionWill be removed in a future version. Please use
SortedSetDocValues.docValueCount()
to know the number of doc values for the current document up-front.UseByteBuffersDirectory.OUTPUT_AS_MANY_BUFFERS
instead.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.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()
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 latestUse latest(9.1.0) Use latest(9.2.0) Use latest(9.11.0) Use latest(9.3.0) Use latest(9.4.0) Use latest(9.5.0) Use latestUse latestUse latest(9.6.0) Use latest(9.7.0) Use latest(9.8.0) Use latest(9.9.0) Use latest(9.9.1) Use latest(9.9.2) Use latest(9.10.0) Use 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.UseKeywordField.newSetQuery(String, Collection)
instead.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 documentsuseIndexSearcher.getTaskExecutor()
executor instead to execute concurrent tasksThis method is being deprecated in favor ofIndexSearcher.search(Query, CollectorManager)
due to its support for concurrency in IndexSearcherset 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
.the encoded terms will no longer be exposed in a future major version; this is an implementation detail that could change at some point and shouldn't be relied on directlyThis method is deprecated in favor of the constructor ofTopFieldCollectorManager
due to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopFieldCollectorManager
due to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopFieldCollectorManager
due to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopScoreDocCollectorManager
due to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopScoreDocCollectorManager
due to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopScoreDocCollectorManager
due to its support for concurrency in IndexSearcherUseByteBuffersDataInput.length()
instead.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
insteadPlease seeAutomata.makeStringUnion(Iterable)
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 ConstructorsConstructorDescriptionUse
DoubleField(String, double, Field.Store)
withField.Store.NO
instead.UseFloatField(String, float, Field.Store)
withField.Store.NO
instead.UseIntField(String, int, Field.Store)
withField.Store.NO
instead.UseLongField(String, long, Field.Store)
withField.Store.NO
instead.UseTermInSetQuery(String, Collection)
instead.UseTermInSetQuery(RewriteMethod, String, Collection)
instead.useMMapDirectory(Path, long)
instead.useMMapDirectory(Path, LockFactory, long)
instead.
-
Deprecated Enum Constants