# Deprecated API

## Contents

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

- Deprecated Classes
  Class and Description
  org.apache.lucene.analysis.miscellaneous.FixBrokenOffsetsFilter Fix the token filters that create broken offsets in the first place.
  org.apache.lucene.analysis.core.LowerCaseTokenizer Use `LetterTokenizer` followed by `LowerCaseFilter`
  org.apache.lucene.analysis.core.LowerCaseTokenizerFactory Use `LetterTokenizerFactory` followed by `LowerCaseFilterFactory`
  org.apache.lucene.analysis.standard.StandardFilterFactory StandardFilter is a no-op and can be removed from filter chains
  org.apache.lucene.analysis.synonym.SynonymFilter Use `SynonymGraphFilter` instead, but be sure to also use `FlattenGraphFilter` at index time (not at search time) as well.
  org.apache.lucene.analysis.synonym.SynonymFilterFactory Use `SynonymGraphFilterFactory` instead, but be sure to also use `FlattenGraphFilterFactory` at index time (not at search time) as well.
  org.apache.lucene.analysis.miscellaneous.WordDelimiterFilter Use `WordDelimiterGraphFilter` instead: it produces a correct token graph so that e.g. `PhraseQuery` works correctly when it's used in the search time analyzer.
  org.apache.lucene.analysis.miscellaneous.WordDelimiterFilterFactory Use `WordDelimiterGraphFilterFactory` instead: it produces a correct token graph so that e.g. `PhraseQuery` works correctly when it's used in the search time analyzer.

- Deprecated Fields
  Field and Description
  org.apache.lucene.analysis.ngram.EdgeNGramTokenFilter.DEFAULT_MAX_GRAM_SIZE since 7.4 - this value will be required.
  org.apache.lucene.analysis.ngram.NGramTokenFilter.DEFAULT_MAX_NGRAM_SIZE since 7.4 - this value will be required.
  org.apache.lucene.analysis.ngram.EdgeNGramTokenFilter.DEFAULT_MIN_GRAM_SIZE since 7.4 - this value will be required.
  org.apache.lucene.analysis.ngram.NGramTokenFilter.DEFAULT_MIN_NGRAM_SIZE since 7.4 - this value will be required.
  org.apache.lucene.analysis.core.StopAnalyzer.ENGLISH_STOP_WORDS_SET

- Deprecated Methods
  Method and Description
  org.apache.lucene.analysis.util.CharTokenizer.fromSeparatorCharPredicate(AttributeFactory, IntPredicate, IntUnaryOperator) Normalization should be done in a subsequent TokenFilter
  org.apache.lucene.analysis.util.CharTokenizer.fromSeparatorCharPredicate(IntPredicate, IntUnaryOperator) Normalization should be done in a subsequent TokenFilter
  org.apache.lucene.analysis.util.CharTokenizer.fromTokenCharPredicate(AttributeFactory, IntPredicate, IntUnaryOperator) Normalization should be done in a subsequent TokenFilter
  org.apache.lucene.analysis.util.CharTokenizer.fromTokenCharPredicate(IntPredicate, IntUnaryOperator) Normalization should be done in a subsequent TokenFilter
  org.apache.lucene.analysis.util.CharTokenizer.normalize(int) Normalization should be done in a subsequent TokenFilter

- Deprecated Constructors
  Constructor and Description
  org.apache.lucene.analysis.util.ClasspathResourceLoader() You should not use this ctor, because it uses the thread's context class loader, which is bad programming style. Please specify a reference class or a `ClassLoader` instead.
  org.apache.lucene.analysis.ngram.EdgeNGramTokenFilter(TokenStream, int, int) since 7.4. Use `EdgeNGramTokenFilter.EdgeNGramTokenFilter(TokenStream, int, int, boolean)` instead.
  org.apache.lucene.analysis.util.FilesystemResourceLoader(Path) You should not use this ctor, because it uses the thread's context class loader as fallback for resource lookups, which is bad programming style. Please specify a `ClassLoader` instead.
  org.apache.lucene.analysis.ngram.NGramTokenFilter(TokenStream) since 7.4. Use `NGramTokenFilter.NGramTokenFilter(TokenStream, int, int, boolean)` instead.
  org.apache.lucene.analysis.ngram.NGramTokenFilter(TokenStream, int, int) since 7.4. Use `NGramTokenFilter.NGramTokenFilter(TokenStream, int, int, boolean)` instead.
  org.apache.lucene.analysis.core.StopAnalyzer() Use a constructor with a specific stop word set

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