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.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.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. 
 

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.Analyzer.overridesTokenStreamMethod
            
 

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.queryParser.CharStream.getColumn()
            
org.apache.lucene.queryParser.CharStream.getLine()
            
org.apache.lucene.analysis.standard.StandardTokenizer.isReplaceInvalidAcronym()
          Remove in 3.X and make true the only valid value 
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.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 Enum Constants
org.apache.lucene.util.Version.LUCENE_CURRENT
          Use an actual version instead. 
 



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