SynonymWithPayloadsFilter

De JDONREF Wiki

Similar to SynonymFilter, with type "payloadsynonym". Payloads from original tokens are kept.

Sample

Settings are like :

 {
   "index" : {
      "analysis" : {
          "analyzer": {
              "myAnalyzer" : {
                  "type" : "custom",
                  "tokenizer" : "whitespace",
                  "filter" : ["lowercase", "synonym"]
              }
          },
          "filter" : {
              "synonym" : {
                 "type": "payloadsynonym",
                 "synonyms_path": "/usr/share/elasticsearch/plugins/jdonrefv4-0.3/jdonrefv4_synonym.fr_FR.txt"
              }
          }
     }
   }
 }