Deprecated API


Contents
Deprecated Classes
org.apache.lucene.document.DateField
          If you build a new index, use DateTools or NumericField instead. This class is included for use with existing indices and will be removed in a future release (possibly Lucene 4.0). 
org.apache.lucene.spatial.geometry.shape.DistanceApproximation
          This has been replaced with more accurate math in LLRect. This class will be removed in a future release. 
org.apache.lucene.analysis.ISOLatin1AccentFilter
          If you build a new index, use ASCIIFoldingFilter which covers a superset of Latin 1. This class is included for use with existing indexes and will be removed in a future release (possibly Lucene 4.0). 
org.apache.lucene.queryParser.standard.MultiFieldQueryParserWrapper
          this class will be removed soon, it's a temporary class to be used along the transition from the old query parser to the new one 
org.apache.lucene.document.NumberTools
          For new indexes use NumericUtils instead, which provides a sortable binary representation (prefix encoded) of numeric values. To index and efficiently query numeric values use NumericField and NumericRangeQuery. This class is included for use with existing indices and will be removed in a future release (possibly Lucene 4.0). 
org.apache.lucene.util.Parameter
          Use Java 5 enum, will be removed in a later Lucene 3.x release. 
org.apache.lucene.queryParser.standard.QueryParserWrapper
          this class will be removed soon, it's a temporary class to be used along the transition from the old query parser to the new one 
org.apache.lucene.analysis.ru.RussianLowerCaseFilter
          Use LowerCaseFilter instead, which has the same functionality. This filter will be removed in Lucene 4.0 
 

Deprecated Fields
org.apache.lucene.analysis.standard.StandardTokenizer.ACRONYM_DEP
          this solves a bug where HOSTs that end with '.' are identified as ACRONYMs. 
org.apache.lucene.analysis.br.BrazilianAnalyzer.BRAZILIAN_STOP_WORDS
          use BrazilianAnalyzer.getDefaultStopSet() instead 
org.apache.lucene.analysis.cz.CzechAnalyzer.CZECH_STOP_WORDS
          use CzechAnalyzer.getDefaultStopSet() instead 
org.apache.lucene.analysis.nl.DutchAnalyzer.DUTCH_STOP_WORDS
          use DutchAnalyzer.getDefaultStopSet() instead 
org.apache.lucene.analysis.fr.FrenchAnalyzer.FRENCH_STOP_WORDS
          use FrenchAnalyzer.getDefaultStopSet() instead 
org.apache.lucene.analysis.de.GermanAnalyzer.GERMAN_STOP_WORDS
          use GermanAnalyzer.getDefaultStopSet() instead 
org.apache.lucene.analysis.Analyzer.overridesTokenStreamMethod
            
org.apache.lucene.analysis.cjk.CJKAnalyzer.STOP_WORDS
          use CJKAnalyzer.getDefaultStopSet() instead 
org.apache.lucene.analysis.ar.ArabicAnalyzer.STOPWORDS_COMMENT
          use WordlistLoader.getWordSet(File, String) directly 
 

Deprecated Methods
org.apache.lucene.search.function.CustomScoreQuery.customExplain(int, Explanation, Explanation)
          Will be removed in Lucene 3.1. The doc is relative to the current reader, which is unknown to CustomScoreQuery when using per-segment search (since Lucene 2.9). Please override CustomScoreQuery.getCustomScoreProvider(org.apache.lucene.index.IndexReader) and return a subclass of CustomScoreProvider for the given IndexReader. 
org.apache.lucene.search.function.CustomScoreQuery.customExplain(int, Explanation, Explanation[])
          Will be removed in Lucene 3.1. The doc is relative to the current reader, which is unknown to CustomScoreQuery when using per-segment search (since Lucene 2.9). Please override CustomScoreQuery.getCustomScoreProvider(org.apache.lucene.index.IndexReader) and return a subclass of CustomScoreProvider for the given IndexReader. 
org.apache.lucene.search.function.CustomScoreQuery.customScore(int, float, float)
          Will be removed in Lucene 3.1. The doc is relative to the current reader, which is unknown to CustomScoreQuery when using per-segment search (since Lucene 2.9). Please override CustomScoreQuery.getCustomScoreProvider(org.apache.lucene.index.IndexReader) and return a subclass of CustomScoreProvider for the given IndexReader. 
org.apache.lucene.search.function.CustomScoreQuery.customScore(int, float, float[])
          Will be removed in Lucene 3.1. The doc is relative to the current reader, which is unknown to CustomScoreQuery when using per-segment search (since Lucene 2.9). Please override CustomScoreQuery.getCustomScoreProvider(org.apache.lucene.index.IndexReader) and return a subclass of CustomScoreProvider for the given IndexReader. 
org.apache.lucene.search.BooleanFilter.finalResult(OpenBitSetDISI, int)
          Either use CachingWrapperFilter, or switch to a different DocIdSet implementation yourself. This method will be removed in Lucene 4.0 
org.apache.lucene.misc.ChainedFilter.finalResult(OpenBitSetDISI, int)
          Either use CachingWrapperFilter, or switch to a different DocIdSet implementation yourself. This method will be removed in Lucene 4.0 
org.apache.lucene.queryParser.CharStream.getColumn()
            
org.apache.lucene.demo.html.SimpleCharStream.getColumn()
            
org.apache.lucene.queryParser.precedence.CharStream.getColumn()
            
org.apache.lucene.queryParser.surround.parser.CharStream.getColumn()
            
org.apache.lucene.queryParser.standard.parser.JavaCharStream.getColumn()
           
org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder.getFieldValues(IndexReader, int, String)
           
org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder.getFragmentSource(StringBuilder, int[], String[], int, int)
           
org.apache.lucene.queryParser.CharStream.getLine()
            
org.apache.lucene.demo.html.SimpleCharStream.getLine()
            
org.apache.lucene.queryParser.precedence.CharStream.getLine()
            
org.apache.lucene.queryParser.surround.parser.CharStream.getLine()
            
org.apache.lucene.queryParser.standard.parser.JavaCharStream.getLine()
           
org.apache.lucene.analysis.standard.StandardTokenizer.isReplaceInvalidAcronym()
          Remove in 3.X and make true the only valid value 
org.apache.lucene.analysis.cz.CzechAnalyzer.loadStopWords(InputStream, String)
          use WordlistLoader.getWordSet(Reader, String) and CzechAnalyzer.CzechAnalyzer(Version, Set) instead 
org.apache.lucene.search.vectorhighlight.BaseFragmentsBuilder.makeFragment(StringBuilder, int[], String[], FieldFragList.WeightedFragInfo)
           
org.apache.lucene.store.IndexInput.readChars(char[], int, int)
          -- please use readString or readBytes instead, and construct the string from those utf8 bytes 
org.apache.lucene.analysis.Analyzer.setOverridesTokenStreamMethod(Class)
          This is only present to preserve back-compat of classes that subclass a core analyzer and override tokenStream but not reusableTokenStream 
org.apache.lucene.analysis.standard.StandardTokenizer.setReplaceInvalidAcronym(boolean)
          Remove in 3.X and make true the only valid value See https://issues.apache.org/jira/browse/LUCENE-1068 
org.apache.lucene.analysis.br.BrazilianAnalyzer.setStemExclusionTable(File)
          use BrazilianAnalyzer.BrazilianAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.de.GermanAnalyzer.setStemExclusionTable(File)
          use GermanAnalyzer.GermanAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.fr.FrenchAnalyzer.setStemExclusionTable(File)
          use FrenchAnalyzer.FrenchAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.nl.DutchAnalyzer.setStemExclusionTable(File)
          use DutchAnalyzer.DutchAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.nl.DutchAnalyzer.setStemExclusionTable(HashSet)
          use DutchAnalyzer.DutchAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.de.GermanAnalyzer.setStemExclusionTable(Map)
          use GermanAnalyzer.GermanAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.fr.FrenchAnalyzer.setStemExclusionTable(Map)
          use FrenchAnalyzer.FrenchAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.br.BrazilianAnalyzer.setStemExclusionTable(Map)
          use BrazilianAnalyzer.BrazilianAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.br.BrazilianAnalyzer.setStemExclusionTable(String...)
          use BrazilianAnalyzer.BrazilianAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.fr.FrenchAnalyzer.setStemExclusionTable(String...)
          use FrenchAnalyzer.FrenchAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.nl.DutchAnalyzer.setStemExclusionTable(String...)
          use DutchAnalyzer.DutchAnalyzer(Version, Set, Set) instead 
org.apache.lucene.analysis.de.GermanAnalyzer.setStemExclusionTable(String[])
          use GermanAnalyzer.GermanAnalyzer(Version, Set, Set) instead 
org.apache.lucene.store.IndexInput.skipChars(int)
          this method operates on old "modified utf8" encoded strings 
org.apache.lucene.store.IndexOutput.writeChars(char[], int, int)
          -- please pre-convert to utf8 bytes instead or use IndexOutput.writeString(java.lang.String) 
org.apache.lucene.store.IndexOutput.writeChars(String, int, int)
          -- please pre-convert to utf8 bytes instead or use IndexOutput.writeString(java.lang.String) 
 

Deprecated Constructors
org.apache.lucene.analysis.ar.ArabicAnalyzer(Version, File)
          use ArabicAnalyzer.ArabicAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.ar.ArabicAnalyzer(Version, Hashtable)
          use ArabicAnalyzer.ArabicAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.ar.ArabicAnalyzer(Version, String...)
          use ArabicAnalyzer.ArabicAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.br.BrazilianAnalyzer(Version, File)
          use BrazilianAnalyzer.BrazilianAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.br.BrazilianAnalyzer(Version, Map)
          use BrazilianAnalyzer.BrazilianAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.br.BrazilianAnalyzer(Version, String...)
          use BrazilianAnalyzer.BrazilianAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.cjk.CJKAnalyzer(Version, String...)
          use CJKAnalyzer.CJKAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.cz.CzechAnalyzer(Version, File)
          use CzechAnalyzer.CzechAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.cz.CzechAnalyzer(Version, HashSet)
          use CzechAnalyzer.CzechAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.cz.CzechAnalyzer(Version, String...)
          use CzechAnalyzer.CzechAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.nl.DutchAnalyzer(Version, File)
          use DutchAnalyzer.DutchAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.nl.DutchAnalyzer(Version, HashSet)
          use DutchAnalyzer.DutchAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.nl.DutchAnalyzer(Version, String...)
          use DutchAnalyzer.DutchAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.fr.FrenchAnalyzer(Version, File)
          use FrenchAnalyzer.FrenchAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.fr.FrenchAnalyzer(Version, String...)
          use FrenchAnalyzer.FrenchAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.de.GermanAnalyzer(Version, File)
          use GermanAnalyzer.GermanAnalyzer(Version, Set) 
org.apache.lucene.analysis.de.GermanAnalyzer(Version, Map)
          use GermanAnalyzer.GermanAnalyzer(Version, Set) 
org.apache.lucene.analysis.de.GermanAnalyzer(Version, String...)
          use GermanAnalyzer.GermanAnalyzer(Version, Set) 
org.apache.lucene.analysis.el.GreekAnalyzer(Version, Map)
          use GreekAnalyzer.GreekAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.el.GreekAnalyzer(Version, String...)
          use GreekAnalyzer.GreekAnalyzer(Version, Set) instead 
org.apache.lucene.demo.html.HTMLParser(File)
          Use HTMLParser(FileInputStream) instead 
org.apache.lucene.analysis.fa.PersianAnalyzer(Version, File)
          use PersianAnalyzer.PersianAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.fa.PersianAnalyzer(Version, Hashtable)
          use PersianAnalyzer.PersianAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.fa.PersianAnalyzer(Version, String...)
          use PersianAnalyzer.PersianAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.ru.RussianAnalyzer(Version, Map)
          use RussianAnalyzer.RussianAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.ru.RussianAnalyzer(Version, String...)
          use RussianAnalyzer.RussianAnalyzer(Version, Set) instead 
org.apache.lucene.analysis.snowball.SnowballAnalyzer(Version, String, String[])
          Use SnowballAnalyzer.SnowballAnalyzer(Version, String, Set) instead. 
org.apache.lucene.search.highlight.TextFragment(StringBuffer, int, int)
          Use TextFragment.TextFragment(CharSequence, int, int) instead. This constructor will be removed in Lucene 4.0 
 

Deprecated Enum Constants
org.apache.lucene.util.Version.LUCENE_CURRENT
          Use an actual version instead. 
 



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