# Multiword Synonym not working

**URL:** <https://discuss.elastic.co/t/multiword-synonym-not-working/132950>\
**Category:** Elasticsearch\
**Created:** [May 23, 2018, 8:34am UTC](https://discuss.elastic.co/t/multiword-synonym-not-working/132950 "2018-05-23T08:34:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjireddy543](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@anjireddy543](https://discuss.elastic.co/u/anjireddy543)\
**Post date:** [May 23, 2018, 8:34am UTC](https://discuss.elastic.co/t/multiword-synonym-not-working/132950/1 "2018-05-23T08:34:35Z")

</div>

Hi,

I am facing problem with multiword synonym on nested field.  
Given below are the mapping details

Field

```
 "acts" : {
            "type" : "nested",
            "include_in_parent" : true,
            "properties" : {
              "value" : {
                "type" : "text",
                "analyzer" : "my_analyzer_acts"
              }
            }
          },

```

Filter

```
 "synonym_acts" : {
              "format" : "solr",
              "ignore_case" : "true",
              "type" : "synonym",
              "synonyms" : [
                "IPC,Indian Penal Code",
                "CrPC,CR.PC,CR.P.C,Code of Criminal Procedure,",
                "cpc,c.pc,c.p.c,code of civil procedure,"
              ]
            },

```

Analyzer

```
 "my_analyzer_acts" : {
          "filter" : [
            "standard",
            "lowercase",     
            "synonym_acts"
          ],
          "type" : "custom",
          "tokenizer" : "whitespace"
        }

```

Currently i am using 5.5 version.  
I found an article saying that it might fixed in version 6.1 ([https://github.com/elastic/elasticsearch/issues/26497](https://github.com/elastic/elasticsearch/issues/26497))

Is it fixed or still open, kindly help me.

I found Other solutions also but i couldn't solve.  
[https://gist.github.com/mattweber/7374591](https://gist.github.com/mattweber/7374591)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 20, 2018, 8:34am UTC](https://discuss.elastic.co/t/multiword-synonym-not-working/132950/2 "2018-06-20T08:34:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
