# Deprecated API

## Contents

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

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