title: Solr SynonymGraphFilterFactory use analyzer defined in schema
body: <p>The SynonymGraphFilterFactory in Solr provides the possibility to specify an analyzer when parsing the synonyms file. I managed to run it specifying an in-build analyzer like <code>FrenchAnalyzer</code>.</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;schema name=&quot;project&quot; version=&quot;1.6&quot;&gt;
    &lt;fieldType name=&quot;text_synonyms&quot; class=&quot;solr.TextField&quot;&gt;
      &lt;analyzer&gt;
        &lt;tokenizer class=&quot;solr.WhitespaceTokenizerFactory&quot;/&gt;
        &lt;filter class=&quot;solr.SynonymGraphFilterFactory&quot; synonyms=&quot;synonyms.txt&quot; analyzer=&quot;org.apache.lucene.analysis.fr.FrenchAnalyzer&quot;/&gt;
      &lt;/analyzer&gt;
    &lt;/fieldTypes&gt;
  &lt;/schema&gt;
  </code></pre>
  <p>But now I need to provide an analyzer through the <code>schema.xml</code> file.<br />
  e.g.:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;schema name=&quot;project&quot; version=&quot;1.6&quot;&gt;
    &lt;fieldType name=&quot;text_synonyms_parser&quot; class=&quot;solr.TextField&quot;&gt;
      &lt;analyzer&gt;
        //custom tokenizer and filter
      &lt;/analyzer&gt;
    &lt;/fieldType&gt;
  
    &lt;fieldType name=&quot;text_synonyms&quot; class=&quot;solr.TextField&quot;&gt;
      &lt;analyzer&gt;
        &lt;tokenizer class=&quot;solr.WhitespaceTokenizerFactory&quot;/&gt;
        &lt;filter class=&quot;solr.SynonymGraphFilterFactory&quot; synonyms=&quot;synonyms.txt&quot; analyzer=&quot;text_synonyms_parser&quot;/&gt;
      &lt;/analyzer&gt;
    &lt;/fieldTypes&gt;
  &lt;/schema&gt;
  </code></pre>
  <p>If I am doing it this way solr throws an exception at startup. Is it possible to specify an analyzer for the <code>SynonymGraphFilterFactory</code> which is defined in the <code>schema.xml</code>?</p>