Elastic Search Standard Analyzer + Synonyms
<p>I am attempting the get Synonyms added to our current way of searching for products. </p>

<p>The mappings ( part of ) looks like this currently :</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>{
  "keywords": {
    "properties": {
      "modifiers": {
        "type": "string",
          "analyzer": "standard"
      },
        "nouns": {
          "type": "string",
            "analyzer": "standard"
        }
    }
  }
}</code></pre>
</div>
</div>
</p>

<p>I am interested in use the <code>synonyms filter</code> along with the <code>standard analyzer</code>. And as per the <a href="https://www.elastic.co/guide/en/elasticsearch/reference/2.4/analysis.html" rel="nofollow">document here from elastic search</a> the right way to do that is to add </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>{
    'analysis': {
      'analyzer': {
        "synonym" : {
          "tokenizer" : 'standard',
          "filter" : ['standard', 'lowercase', 'stop', 'external_synonym']
        }
      },
      'filter': {
        'external_synonym': {
          'type': 'synonym',
          'synonyms': synonyms
        }
      }
    }</code></pre>
</div>
</div>
</p>

<p>into the mappings and use that in the <code>analyzer</code> field in the snippet above. <strong>But</strong> this does not work - in the sense that - the behaviour is quite different ( even without adding any synonyms ). </p>

<p>I am interested in preserving the relevancy behaviour ( as provided by the <code>standard analyzer</code> ) and just added the synonyms list. </p>

<p>Could someone please provide more information on how to <strong>exactly</strong> replicate the <code>standard analyzer</code> behaviour ? </p>