title: How can I have a one-way synonym in Solr?
body: <p>I am trying  to implement one way synonym or one way thesaurus(as in Endeca) in Solr. Where I search for camcorder I get result for camera also but not vice versa. I tried adding following in Synonyms.txt but seems to be not working as it is giving weird results:</p>
  
  <p>camcorder => camera</p>
  
  <p>And my schema.xml is:</p>
  
  <pre><code>&lt;fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"  multiValued="true"&gt;
      &lt;analyzer type="index"&gt;
          &lt;tokenizer class="solr.ClassicTokenizerFactory"/&gt;
          &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
          &lt;filter class="solr.ClassicFilterFactory"/&gt;
          &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" /&gt;
          &lt;filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/&gt;
      &lt;filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="15"/&gt;
      &lt;/analyzer&gt;
      &lt;analyzer type="query"&gt;
          &lt;tokenizer class="solr.ClassicTokenizerFactory"/&gt;
          &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
          &lt;filter class="solr.ClassicFilterFactory"/&gt;
          &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" /&gt;
      &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  </code></pre>