title: how to configure the synonyms_path in elasticsearch
body: <p>i'm pretty new to elasticsearch and i want to use synonyms, i added these lines in the configuration file:</p>
  
  <pre><code>index :
      analysis :
          analyzer : 
              synonym :
                  type : custom
                  tokenizer : whitespace
                  filter : [synonym]
          filter :
              synonym :
                  type : synonym
                  synonyms_path: synonyms.txt
  </code></pre>
  
  <p>then i created an index test:</p>
  
  <pre><code>"mappings" : {
    "test" : {
       "properties" : {
          "text_1" : {
             "type" : "string",
             "analyzer" : "synonym"
          },
          "text_2" : {
             "search_analyzer" : "standard",
             "index_analyzer" : "synonym",
             "type" : "string"
          },
          "text_3" : {
             "type" : "string",
             "analyzer" : "synonym"
          }
       }
    }
  </code></pre>
  
  <p>}</p>
  
  <p>and insrted a type test with this data:</p>
  
  <pre><code>{
  "text_3" : "foo dog cat",
  "text_2" : "foo dog cat",
  "text_1" : "foo dog cat"
  }
  </code></pre>
  
  <p>synonyms.txt contains "foo,bar,baz", and when i search for foo it returns what i expected but when i search for baz or bar it return zero results:</p>
  
  <pre><code>{
  "query":{
  "query_string":{
      "query" : "bar",
      "fields" : [ "text_1"],
      "use_dis_max" : true,
      "boost" : 1.0
  }}} 
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>{
  "took":1,
  "timed_out":false,
  "_shards":{
  "total":5,
  "successful":5,
  "failed":0
  },
  "hits":{
  "total":0,
  "max_score":null,
  "hits":[
  ]
  }
  }
  </code></pre>