Deprecated API
Contents
- Terminally Deprecated
- Interfaces
- Classes
- Enum Classes
- Exception Classes
- Fields
- Methods
- Constructors
- Enum Constants
-
Terminally Deprecated ElementsElementDescriptionreplaced 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 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.UseKeywordField.newSetQuery(String, Collection)instead.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.UseIndexSearcher.setTimeout(QueryTimeout)to time out queries.This class was made public for internal reasons (instanceofchecks). InMMapDirectoryit was replaced byMemorySegmentbasedIndexInputimplementations 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)This comparator is only a transition mechanism
-
Deprecated Enum Classes
-
Deprecated Exception ClassesException ClassDescription
-
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.UseByteBuffersDirectory.OUTPUT_AS_MANY_BUFFERSinstead.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 latestUse latest(9.1.0) Use latest(9.2.0) Use latest(9.11.0) Use latest(9.11.1) 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 ofTopFieldCollectorManagerdue to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopFieldCollectorManagerdue to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopFieldCollectorManagerdue to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopScoreDocCollectorManagerdue to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopScoreDocCollectorManagerdue to its support for concurrency in IndexSearcherThis method is deprecated in favor of the constructor ofTopScoreDocCollectorManagerdue to its support for concurrency in IndexSearcherorg.apache.lucene.search.uhighlight.UnifiedHighlighter.shouldPreferPassageRelevancyOverSpeed(String) UseByteBuffersDataInput.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_SYSPROPinsteadPlease 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 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 resourcesUseDoubleField(String, double, Field.Store)withField.Store.NOinstead.UseFloatField(String, float, Field.Store)withField.Store.NOinstead.UseIntField(String, int, Field.Store)withField.Store.NOinstead.UseLongField(String, long, Field.Store)withField.Store.NOinstead.UseTermInSetQuery(String, Collection)instead.UseTermInSetQuery(RewriteMethod, String, Collection)instead.useMMapDirectory(Path, long)instead.useMMapDirectory(Path, LockFactory, long)instead.
-
Deprecated Enum Constants