## Deprecated API

Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors

Deprecated Classes
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

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

Deprecated Methods
org.apache.lucene.document.Document.fields() use `Document.getFields()` instead
org.apache.lucene.queryParser.CharStream.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.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.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.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.