title: Where did BaseTokenFilterFactory go in Solr 4.0?
body: <p>The Solr documentation for creating your own token and character filters says the following.</p>
  
  <p><a href="http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#Specifying_an_Analyzer_in_the_schema" rel="nofollow">http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#Specifying_an_Analyzer_in_the_schema</a></p>
  
  <blockquote>
    <p>If you want to use custom CharFilters, Tokenizers or TokenFilters, you'll need to write a very simple factory that subclasses BaseTokenizerFactory or BaseTokenFilterFactory, something like this...</p>
  </blockquote>
  
  <pre><code>public class MyCustomFilterFactory extends BaseTokenFilterFactory {
    public TokenStream create(TokenStream input) {
      return new MyCustomFilter(input);
    }
  }
  </code></pre>
  
  <p>I cannot find the BaseTokenFilterFactory anywhere in the source code for Solr 4.</p>
  
  <p>Here is the org.apache.solr.analysis package from Solr 3.6.1</p>
  
  <p><a href="http://svn.apache.org/viewvc/lucene/dev/tags/lucene_solr_3_6_1/solr/core/src/java/org/apache/solr/analysis/" rel="nofollow">http://svn.apache.org/viewvc/lucene/dev/tags/lucene_solr_3_6_1/solr/core/src/java/org/apache/solr/analysis/</a></p>
  
  <p>And here is the same package for Solr 4.0.0</p>
  
  <p><a href="http://svn.apache.org/viewvc/lucene/dev/tags/lucene_solr_4_0_0/solr/core/src/java/org/apache/solr/analysis/" rel="nofollow">http://svn.apache.org/viewvc/lucene/dev/tags/lucene_solr_4_0_0/solr/core/src/java/org/apache/solr/analysis/</a></p>
  
  <p>The documentation looks like it will work for Solr 3.6, but I need to know how to create custom filters using 4.0.</p>