title: example of how to use synonyms in nest
body: <p>i haven't found a solid example on how to create and use synonyms using Nest for Elasticsearch. if anyone has one it would be helpful.</p>
  
  <p>my attempt looks like this, but i don't know how to apply it to a field.</p>
  
  <pre><code>var syn = new SynonymTokenFilter
  {
      Synonyms = new [] { "pink, p!nk =&gt; pink", "lil, little", "ke$ha, kesha =&gt; ke$ha" },     
      IgnoreCase = true,
      Tokenizer = "standard"
  };
  
  client.CreateIndex("myindex", i =&gt;
  {
      i
          .Analysis(a =&gt; a.Analyzers(an =&gt; an
              .Add("fullTermCaseInsensitive", fullTermCaseInsensitive)
              )
              .TokenFilters(x =&gt; x
                  .Add("synonym", syn)
                  )
              )
  ...
  </code></pre>