Deprecated API


Contents
Deprecated Classes
org.apache.lucene.util.IndexableBinaryStringTools
          Implement TermToBytesRefAttribute and store bytes directly instead. This class will be removed in Lucene 5.0 
org.apache.lucene.codecs.lucene3x.Lucene3xCodec
            
org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoFormat
          (4.0) This is only used to read indexes created before 4.0. 
org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader
            
 

Deprecated Enums
org.apache.lucene.document.Field.Index
          This is here only to ease transition from the pre-4.0 APIs. 
org.apache.lucene.document.Field.TermVector
          This is here only to ease transition from the pre-4.0 APIs. 
 

Deprecated Fields
org.apache.lucene.search.FuzzyQuery.defaultMinSimilarity
          pass integer edit distances instead. 
org.apache.lucene.util.Constants.JRE_IS_MINIMUM_JAVA6
          With Lucene 4.0, we are always on Java 6 
 

Deprecated Methods
org.apache.lucene.search.FuzzyQuery.floatToEdits(float, int)
          pass integer edit distances instead. 
org.apache.lucene.util.CharsRef.getUTF16SortedAsUTF8Comparator()
          This comparator is only a transition mechanism 
org.apache.lucene.util.BytesRef.getUTF8SortedAsUTF16Comparator()
          This comparator is only a transition mechanism 
org.apache.lucene.index.AtomicReader.hasNorms(String)
          (4.0) use AtomicReader.getFieldInfos() and check FieldInfo.hasNorms() for the field instead. 
org.apache.lucene.index.IndexReader.open(Directory)
          Use DirectoryReader.open(Directory) 
org.apache.lucene.index.IndexReader.open(Directory, int)
          Use DirectoryReader.open(Directory,int) 
org.apache.lucene.index.IndexReader.open(IndexCommit)
          Use DirectoryReader.open(IndexCommit) 
org.apache.lucene.index.IndexReader.open(IndexCommit, int)
          Use DirectoryReader.open(IndexCommit,int) 
org.apache.lucene.index.IndexReader.open(IndexWriter, boolean)
          Use DirectoryReader.open(IndexWriter,boolean) 
org.apache.lucene.document.Field.translateFieldType(Field.Store, Field.Index, Field.TermVector)
          This is here only to ease transition from the pre-4.0 APIs. 
org.apache.lucene.index.SegmentInfos.write3xInfo(Directory, SegmentInfo, IOContext)
           
 

Deprecated Constructors
org.apache.lucene.document.Field(String, byte[])
          Use StoredField instead. 
org.apache.lucene.document.Field(String, byte[], int, int)
          Use StoredField instead. 
org.apache.lucene.document.Field(String, Reader)
          Use TextField instead. 
org.apache.lucene.document.Field(String, Reader, Field.TermVector)
          Use TextField instead. 
org.apache.lucene.document.Field(String, String, Field.Store, Field.Index)
          Use StringField, TextField instead. 
org.apache.lucene.document.Field(String, String, Field.Store, Field.Index, Field.TermVector)
          Use StringField, TextField instead. 
org.apache.lucene.document.Field(String, TokenStream)
          Use TextField instead 
org.apache.lucene.document.Field(String, TokenStream, Field.TermVector)
          Use TextField instead 
 

Deprecated Enum Constants
org.apache.lucene.util.Version.LUCENE_30
          (4.0) Use latest 
org.apache.lucene.util.Version.LUCENE_31
          (4.0) Use latest 
org.apache.lucene.util.Version.LUCENE_32
          (4.0) Use latest 
org.apache.lucene.util.Version.LUCENE_33
          (4.0) Use latest 
org.apache.lucene.util.Version.LUCENE_34
          (4.0) Use latest 
org.apache.lucene.util.Version.LUCENE_35
          (4.0) Use latest 
org.apache.lucene.util.Version.LUCENE_36
          (4.0) Use latest 
org.apache.lucene.util.Version.LUCENE_CURRENT
          Use an actual version instead. 
 



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