title: EdgeNGram: Error instantiating class: 'org.apache.lucene.analysis.ngram.EdgeNGramFilterFactory'
body: <p>I've set up Solr, so far everything's working just dandy, but now I wanted to add the EdgeNGram functionality to my searches. However, as soon as I throw it into my schema.xml, it starts throwing the error:</p>
  
  <pre><code>org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
  Could not load conf for core collection1: Plugin init failure for [schema.xml] 
  fieldType "text_en_splitting": Plugin init failure for [schema.xml] analyzer/filter: 
  Error instantiating class: 'org.apache.lucene.analysis.ngram.EdgeNGramFilterFactory'. 
  Schema file is /opt/solr/server/solr/collection1/conf/schema.xml 
  </code></pre>
  
  <p>The relevant schema part looks like this:</p>
  
  <pre><code>&lt;filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="15" side="front"/&gt;
  </code></pre>
  
  <p>The configuration of the rest of the fieldType is fine as I've tested it rather extensively. It's just adding this line that throws the error.</p>
  
  <p>Now, I've done some looking around, and usually, these errors mean that there's a .jar that's missing (at least according to the other two questions posted on here, not relating to NGram specifically though). So I went ahead and digged up lucene-analyzers-common.jar and explicitly added it in my solrconfig.xml, like so:</p>
  
  <pre><code>&lt;lib dir="${solr.install.dir:../../../..}/dist/" regex="lucene-analyzers-common-\d.*\.jar" /&gt;
  </code></pre>
  
  <p>No luck. I know the path is fine though, I included the mysql_connector just this way. Anyways, I grew pretty tired of this error, so I went ahead and included every single .jar that I could dig up:</p>
  
  <pre><code>&lt;lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-.*\.jar" /&gt;
  </code></pre>
  
  <p>Nope.jpg</p>
  
  <p>Of course, all of this was accompanied by many bin/solr stop -all and starts, all of them still serving me that pretty, red banner in the Solr Admin. I'm on Solr 5.0.0</p>
  
  <p>Help?</p>