Deprecated API


Contents
Deprecated Interfaces
org.apache.lucene.benchmark.Benchmarker
          Use the Task based benchmarker 
org.apache.lucene.benchmark.BenchmarkOptions
          Use the task based approach instead 
 

Deprecated Classes
org.apache.lucene.benchmark.AbstractBenchmarker
          Use the Task based benchmarker 
org.apache.lucene.document.DateField
          If you build a new index, use DateTools instead. This class is included for use with existing indices and will be removed in a future release. 
org.apache.lucene.index.IndexModifier
          Please use IndexWriter instead. 
org.apache.lucene.search.QueryFilter
          use a CachingWrapperFilter with QueryWrapperFilter 
org.apache.lucene.benchmark.standard.ReutersQueries
          Use Task based benchmarker 
org.apache.lucene.benchmark.standard.StandardBenchmarker
          use the byTask code instead. See http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/org/apache/lucene/benchmark/byTask/package-summary.html . 
org.apache.lucene.benchmark.standard.StandardOptions
          Use the Task based stuff instead 
org.apache.lucene.analysis.nl.WordlistLoader
          use WordlistLoader instead 
 

Deprecated Fields
org.apache.lucene.analysis.standard.StandardTokenizer.ACRONYM_DEP
          this solves a bug where HOSTs that end with '.' are identified as ACRONYMs. It is deprecated and will be removed in the next release. 
org.apache.lucene.index.IndexWriter.DEFAULT_MAX_MERGE_DOCS
            
org.apache.lucene.index.IndexWriter.DEFAULT_MERGE_FACTOR
            
org.apache.lucene.store.FSDirectory.LOCK_DIR
          As of 2.1, LOCK_DIR is unused because the write.lock is now stored by default in the index directory. If you really want to store locks elsewhere you can create your own SimpleFSLockFactory (or NativeFSLockFactory, etc.) passing in your preferred lock directory. Then, pass this LockFactory instance to one of the getDirectory methods that take a lockFactory (for example, FSDirectory.getDirectory(String, LockFactory)). 
org.apache.lucene.analysis.standard.StandardTokenizer.tokenImage
          Please use StandardTokenizer.TOKEN_TYPES instead 
org.apache.lucene.wikipedia.analysis.WikipediaTokenizer.tokenImage
          Please use WikipediaTokenizer.TOKEN_TYPES instead 
 

Deprecated Methods
org.apache.lucene.document.Document.fields()
          use Document.getFields() instead 
org.apache.lucene.search.highlight.Highlighter.getBestFragments(Analyzer, String, int)
          This method incorrectly hardcodes the choice of fieldname. Use the method of the same name that takes a fieldname. 
org.apache.lucene.queryParser.CharStream.getColumn()
            
org.apache.lucene.demo.html.SimpleCharStream.getColumn()
            
org.apache.lucene.store.FSDirectory.getDirectory(File, boolean)
          Use IndexWriter's create flag, instead, to create a new index. 
org.apache.lucene.store.FSDirectory.getDirectory(String, boolean)
          Use IndexWriter's create flag, instead, to create a new index. 
org.apache.lucene.queryParser.CharStream.getLine()
            
org.apache.lucene.demo.html.SimpleCharStream.getLine()
            
org.apache.lucene.analysis.nl.WordlistLoader.getStemDict(File)
          use WordlistLoader.getStemDict(File) instead 
org.apache.lucene.search.spans.SpanNotQuery.getTerms()
          use extractTerms instead 
org.apache.lucene.search.spans.SpanTermQuery.getTerms()
          use extractTerms instead 
org.apache.lucene.search.spans.SpanQuery.getTerms()
          use extractTerms instead 
org.apache.lucene.search.spans.SpanOrQuery.getTerms()
          use extractTerms instead 
org.apache.lucene.search.spans.SpanNearQuery.getTerms()
          use extractTerms instead 
org.apache.lucene.search.spans.SpanFirstQuery.getTerms()
          use extractTerms instead 
org.apache.lucene.search.BooleanQuery.getUseScorer14()
          Use BooleanQuery.getAllowDocsOutOfOrder() instead. 
org.apache.lucene.analysis.nl.WordlistLoader.getWordtable(File)
          use WordlistLoader.getWordSet(File) instead 
org.apache.lucene.analysis.nl.WordlistLoader.getWordtable(String)
          use WordlistLoader.getWordSet(File) instead 
org.apache.lucene.analysis.nl.WordlistLoader.getWordtable(String, String)
          use WordlistLoader.getWordSet(File) instead 
org.apache.lucene.analysis.standard.StandardTokenizer.isReplaceInvalidAcronym()
          Remove in 3.X and make true the only valid value 
org.apache.lucene.store.RAMDirectory.renameFile(String, String)
            
org.apache.lucene.store.FSDirectory.renameFile(String, String)
            
org.apache.lucene.store.Directory.renameFile(String, String)
            
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.search.BooleanQuery.setUseScorer14(boolean)
          Use BooleanQuery.setAllowDocsOutOfOrder(boolean) instead. 
org.apache.lucene.analysis.Token.termText()
          Use Token.termBuffer() and Token.termLength() instead. 
 

Deprecated Constructors
org.apache.lucene.demo.html.HTMLParser(File)
          Use HTMLParser(FileInputStream) instead 
org.apache.lucene.index.IndexReader(Directory)
          - use IndexReader() 
org.apache.lucene.analysis.standard.StandardAnalyzer(boolean)
          Remove in 3.X and make true the only valid value 
org.apache.lucene.analysis.standard.StandardAnalyzer(File, boolean)
          Remove in 3.X and make true the only valid value 
org.apache.lucene.analysis.standard.StandardAnalyzer(Reader, boolean)
          Remove in 3.X and make true the only valid value 
org.apache.lucene.analysis.standard.StandardAnalyzer(Set, boolean)
          Remove in 3.X and make true the only valid value 
org.apache.lucene.analysis.standard.StandardAnalyzer(String[], boolean)
          Remove in 3.X and make true the only valid value 
 



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