# Help with Synonyms

**URL:** <https://discuss.elastic.co/t/help-with-synonyms/18800>\
**Category:** Elasticsearch\
**Created:** [July 22, 2014, 4:33pm UTC](https://discuss.elastic.co/t/help-with-synonyms/18800 "2014-07-22T16:33:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Yim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_yim/32/1367_2.png) [@Daniel\_Yim](https://discuss.elastic.co/u/Daniel_Yim)\
**Post date:** [July 22, 2014, 4:33pm UTC](https://discuss.elastic.co/t/help-with-synonyms/18800/1 "2014-07-22T16:33:05Z")

</div>

Hi everyone,

I am relatively new to elasticsearch and am having issues with getting my  
synonym filter to work. Can you take a look at the settings and tell me  
where I am going wrong?

I am expecting the search for "aids" to match the search results if I were  
to search for "retrovirology", but this is not happening.

Thanks!

curl -XDELETE "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)"

curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
{  
"settings": {  
"index": {  
"analysis": {  
"analyzer": {  
"XYZSynAnalyzer": {  
"tokenizer": "standard",  
"filter": [  
"XYZSynFilter"  
]  
}  
},  
"filter": {  
"XYZSynFilter": {  
"type": "synonym",  
"synonyms": [  
"aids, retrovirology"  
]  
}  
}  
}  
}  
},  
"mappings": {  
"xyzemployee": {  
"\_all": {  
"analyzer": "XYZSynAnalyzer"  
},  
"properties": {  
"firstName": {  
"type": "string"  
},  
"lastName": {  
"type": "string"  
},  
"middleName": {  
"type": "string",  
"include\_in\_all": false,  
"index": "not\_analyzed"  
},  
"specialty": {  
"type": "string",  
"analyzer": "XYZSynAnalyzer"  
}  
}  
}  
}  
}'

curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/1](http://localhost:9200/personsearch/xyzemployee/1)" -d'  
{  
"firstName": "Don",  
"middleName": "W.",  
"lastName": "White",  
"specialty": "Adult Retrovirology"  
}'

curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/2](http://localhost:9200/personsearch/xyzemployee/2)" -d'  
{  
"firstName": "Terrance",  
"middleName": "G.",  
"lastName": "Gartner",  
"specialty": "Retrovirology"  
}'

curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/3](http://localhost:9200/personsearch/xyzemployee/3)" -d'  
{  
"firstName": "Carter",  
"middleName": "L.",  
"lastName": "Taylor",  
"specialty": "Pediatric Retrovirology"  
}'

curl -XGET  
"[http://localhost:9200/personsearch/xyzemployee/\_search?pretty=true](http://localhost:9200/personsearch/xyzemployee/_search?pretty=true)" -d'  
{  
"query": {  
"match": {  
"specialty": "retrovirology"  
}  
}  
}'

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [July 22, 2014, 4:56pm UTC](https://discuss.elastic.co/t/help-with-synonyms/18800/2 "2014-07-22T16:56:26Z")

</div>

Your issue is casing. You are only applying the synonym filter, which by  
default does not lowercase terms. You can either set ignore\_case to true  
for the synonym filter or apply a lower case filter before the synonym. I  
prefer to use the latter approach since I prefer to have all my analyzed  
tokens lowercased.

Also, you should only apply the synonym filter at index time. You would  
need to create two similar analyzers, one with the synonym filter and one  
without. You can set the different ones via index\_analyzer and  
search\_analyzer.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Cheers,

Ivan

On Tue, Jul 22, 2014 at 9:33 AM, Daniel Yim [danielyim@gmail.com](mailto:danielyim@gmail.com) wrote:

> Hi everyone,
> 
> I am relatively new to elasticsearch and am having issues with getting my  
> synonym filter to work. Can you take a look at the settings and tell me  
> where I am going wrong?
> 
> I am expecting the search for "aids" to match the search results if I were  
> to search for "retrovirology", but this is not happening.
> 
> Thanks!
> 
> curl -XDELETE "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)"
> 
> curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
> {  
> "settings": {  
> "index": {  
> "analysis": {  
> "analyzer": {  
> "XYZSynAnalyzer": {  
> "tokenizer": "standard",  
> "filter": [  
> "XYZSynFilter"  
> ]  
> }  
> },  
> "filter": {  
> "XYZSynFilter": {  
> "type": "synonym",  
> "synonyms": [  
> "aids, retrovirology"  
> ]  
> }  
> }  
> }  
> }  
> },  
> "mappings": {  
> "xyzemployee": {  
> "\_all": {  
> "analyzer": "XYZSynAnalyzer"  
> },  
> "properties": {  
> "firstName": {  
> "type": "string"  
> },  
> "lastName": {  
> "type": "string"  
> },  
> "middleName": {  
> "type": "string",  
> "include\_in\_all": false,  
> "index": "not\_analyzed"  
> },  
> "specialty": {  
> "type": "string",  
> "analyzer": "XYZSynAnalyzer"  
> }  
> }  
> }  
> }  
> }'
> 
> curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/1](http://localhost:9200/personsearch/xyzemployee/1)" -d'  
> {  
> "firstName": "Don",  
> "middleName": "W.",  
> "lastName": "White",  
> "specialty": "Adult Retrovirology"  
> }'
> 
> curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/2](http://localhost:9200/personsearch/xyzemployee/2)" -d'  
> {  
> "firstName": "Terrance",  
> "middleName": "G.",  
> "lastName": "Gartner",  
> "specialty": "Retrovirology"  
> }'
> 
> curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/3](http://localhost:9200/personsearch/xyzemployee/3)" -d'  
> {  
> "firstName": "Carter",  
> "middleName": "L.",  
> "lastName": "Taylor",  
> "specialty": "Pediatric Retrovirology"  
> }'
> 
> curl -XGET "  
> [http://localhost:9200/personsearch/xyzemployee/\_search?pretty=true](http://localhost:9200/personsearch/xyzemployee/_search?pretty=true)" -d'  
> {  
> "query": {  
> "match": {  
> "specialty": "retrovirology"  
> }  
> }  
> }'
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDxi6W5CdM3gzzPY70uVtUXAr4OK5odvz5fXvfpCO6LPw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDxi6W5CdM3gzzPY70uVtUXAr4OK5odvz5fXvfpCO6LPw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Daniel\_Yim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_yim/32/1367_2.png) [@Daniel\_Yim](https://discuss.elastic.co/u/Daniel_Yim)\
**Post date:** [July 22, 2014, 5:47pm UTC](https://discuss.elastic.co/t/help-with-synonyms/18800/3 "2014-07-22T17:47:46Z")

</div>

Thank you! That solved the initial issue.

Could you expand on why I would need two analyzers? I did what you asked,  
but I am unsure of the reason behind it and would like to learn.

Here are my updated settings:

curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
{  
"settings": {  
"index": {  
"analysis": {  
"analyzer": {  
"XYZSynAnalyzer": {  
"tokenizer": "whitespace",  
"filter": [  
"lowercase",  
"XYZSynFilter"  
]  
},  
"MyAnalyzer": {  
"tokenizer": "standard",  
"filter": [  
"standard",  
"lowercase",  
"stop"  
]  
}  
},  
"filter": {  
"XYZSynFilter": {  
"type": "synonym",  
"synonyms": [  
"aids, retrovirology"  
]  
}  
}  
}  
}  
},  
"mappings": {  
"xyzemployee": {  
"\_all": {  
"analyzer": "XYZSynAnalyzer"  
},  
"properties": {  
"firstName": {  
"type": "string"  
},  
"lastName": {  
"type": "string"  
},  
"middleName": {  
"type": "string",  
"include\_in\_all": false,  
"index": "not\_analyzed"  
},  
"specialty": {  
"type": "string",  
"index\_analyzer": "XYZSynAnalyzer",  
"search\_analyzer": "MyAnalyzer"  
}  
}  
}  
}  
}'

On Tuesday, July 22, 2014 11:56:40 AM UTC-5, Ivan Brusic wrote:

> Your issue is casing. You are only applying the synonym filter, which by  
> default does not lowercase terms. You can either set ignore\_case to true  
> for the synonym filter or apply a lower case filter before the synonym. I  
> prefer to use the latter approach since I prefer to have all my analyzed  
> tokens lowercased.
> 
> Also, you should only apply the synonym filter at index time. You would  
> need to create two similar analyzers, one with the synonym filter and one  
> without. You can set the different ones via index\_analyzer and  
> search\_analyzer.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#string)
> 
> Cheers,
> 
> Ivan
> 
> On Tue, Jul 22, 2014 at 9:33 AM, Daniel Yim \<[dani...@gmail.com](mailto:dani...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hi everyone,
> > 
> > I am relatively new to elasticsearch and am having issues with getting my  
> > synonym filter to work. Can you take a look at the settings and tell me  
> > where I am going wrong?
> > 
> > I am expecting the search for "aids" to match the search results if I  
> > were to search for "retrovirology", but this is not happening.
> > 
> > Thanks!
> > 
> > curl -XDELETE "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)"
> > 
> > curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
> > {  
> > "settings": {  
> > "index": {  
> > "analysis": {  
> > "analyzer": {  
> > "XYZSynAnalyzer": {  
> > "tokenizer": "standard",  
> > "filter": [  
> > "XYZSynFilter"  
> > ]  
> > }  
> > },  
> > "filter": {  
> > "XYZSynFilter": {  
> > "type": "synonym",  
> > "synonyms": [  
> > "aids, retrovirology"  
> > ]  
> > }  
> > }  
> > }  
> > }  
> > },  
> > "mappings": {  
> > "xyzemployee": {  
> > "\_all": {  
> > "analyzer": "XYZSynAnalyzer"  
> > },  
> > "properties": {  
> > "firstName": {  
> > "type": "string"  
> > },  
> > "lastName": {  
> > "type": "string"  
> > },  
> > "middleName": {  
> > "type": "string",  
> > "include\_in\_all": false,  
> > "index": "not\_analyzed"  
> > },  
> > "specialty": {  
> > "type": "string",  
> > "analyzer": "XYZSynAnalyzer"  
> > }  
> > }  
> > }  
> > }  
> > }'
> > 
> > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/1](http://localhost:9200/personsearch/xyzemployee/1)" -d'  
> > {  
> > "firstName": "Don",  
> > "middleName": "W.",  
> > "lastName": "White",  
> > "specialty": "Adult Retrovirology"  
> > }'
> > 
> > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/2](http://localhost:9200/personsearch/xyzemployee/2)" -d'  
> > {  
> > "firstName": "Terrance",  
> > "middleName": "G.",  
> > "lastName": "Gartner",  
> > "specialty": "Retrovirology"  
> > }'
> > 
> > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/3](http://localhost:9200/personsearch/xyzemployee/3)" -d'  
> > {  
> > "firstName": "Carter",  
> > "middleName": "L.",  
> > "lastName": "Taylor",  
> > "specialty": "Pediatric Retrovirology"  
> > }'
> > 
> > curl -XGET "  
> > [http://localhost:9200/personsearch/xyzemployee/\_search?pretty=true](http://localhost:9200/personsearch/xyzemployee/_search?pretty=true)" -d'  
> > {  
> > "query": {  
> > "match": {  
> > "specialty": "retrovirology"  
> > }  
> > }  
> > }'
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [July 22, 2014, 6:03pm UTC](https://discuss.elastic.co/t/help-with-synonyms/18800/4 "2014-07-22T18:03:40Z")

</div>

A couple of reasons. The biggest issue is multi word synonyms since the  
query parser will tokenize the query before analysis is applied. Also,  
scoring could be affected and the results can be screwy. Here is a better  
write up:

[http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory](http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory)

--  
Ivan

On Tue, Jul 22, 2014 at 10:47 AM, Daniel Yim [danielyim@gmail.com](mailto:danielyim@gmail.com) wrote:

> Thank you! That solved the initial issue.
> 
> Could you expand on why I would need two analyzers? I did what you asked,  
> but I am unsure of the reason behind it and would like to learn.
> 
> Here are my updated settings:
> 
> curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
> {  
> "settings": {  
> "index": {  
> "analysis": {  
> "analyzer": {  
> "XYZSynAnalyzer": {  
> "tokenizer": "whitespace",  
> "filter": [  
> "lowercase",  
> "XYZSynFilter"  
> ]  
> },  
> "MyAnalyzer": {  
> "tokenizer": "standard",  
> "filter": [  
> "standard",  
> "lowercase",  
> "stop"  
> ]  
> }  
> },  
> "filter": {  
> "XYZSynFilter": {  
> "type": "synonym",  
> "synonyms": [  
> "aids, retrovirology"  
> ]  
> }  
> }  
> }  
> }  
> },  
> "mappings": {  
> "xyzemployee": {  
> "\_all": {  
> "analyzer": "XYZSynAnalyzer"  
> },  
> "properties": {  
> "firstName": {  
> "type": "string"  
> },  
> "lastName": {  
> "type": "string"  
> },  
> "middleName": {  
> "type": "string",  
> "include\_in\_all": false,  
> "index": "not\_analyzed"  
> },  
> "specialty": {  
> "type": "string",  
> "index\_analyzer": "XYZSynAnalyzer",  
> "search\_analyzer": "MyAnalyzer"  
> }  
> }  
> }  
> }  
> }'
> 
> On Tuesday, July 22, 2014 11:56:40 AM UTC-5, Ivan Brusic wrote:
> 
> > Your issue is casing. You are only applying the synonym filter, which by  
> > default does not lowercase terms. You can either set ignore\_case to true  
> > for the synonym filter or apply a lower case filter before the synonym. I  
> > prefer to use the latter approach since I prefer to have all my analyzed  
> > tokens lowercased.
> > 
> > Also, you should only apply the synonym filter at index time. You would  
> > need to create two similar analyzers, one with the synonym filter and one  
> > without. You can set the different ones via index\_analyzer and  
> > search\_analyzer.
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/)  
> > reference/current/mapping-core-types.html#string
> > 
> > Cheers,
> > 
> > Ivan
> > 
> > On Tue, Jul 22, 2014 at 9:33 AM, Daniel Yim [dani...@gmail.com](mailto:dani...@gmail.com) wrote:
> > 
> > > Hi everyone,
> > > 
> > > I am relatively new to elasticsearch and am having issues with getting  
> > > my synonym filter to work. Can you take a look at the settings and tell me  
> > > where I am going wrong?
> > > 
> > > I am expecting the search for "aids" to match the search results if I  
> > > were to search for "retrovirology", but this is not happening.
> > > 
> > > Thanks!
> > > 
> > > curl -XDELETE "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)"
> > > 
> > > curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
> > > {  
> > > "settings": {  
> > > "index": {  
> > > "analysis": {  
> > > "analyzer": {  
> > > "XYZSynAnalyzer": {  
> > > "tokenizer": "standard",  
> > > "filter": [  
> > > "XYZSynFilter"  
> > > ]  
> > > }  
> > > },  
> > > "filter": {  
> > > "XYZSynFilter": {  
> > > "type": "synonym",  
> > > "synonyms": [  
> > > "aids, retrovirology"  
> > > ]  
> > > }  
> > > }  
> > > }  
> > > }  
> > > },  
> > > "mappings": {  
> > > "xyzemployee": {  
> > > "\_all": {  
> > > "analyzer": "XYZSynAnalyzer"  
> > > },  
> > > "properties": {  
> > > "firstName": {  
> > > "type": "string"  
> > > },  
> > > "lastName": {  
> > > "type": "string"  
> > > },  
> > > "middleName": {  
> > > "type": "string",  
> > > "include\_in\_all": false,  
> > > "index": "not\_analyzed"  
> > > },  
> > > "specialty": {  
> > > "type": "string",  
> > > "analyzer": "XYZSynAnalyzer"  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }'
> > > 
> > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/1](http://localhost:9200/personsearch/xyzemployee/1)" -d'  
> > > {  
> > > "firstName": "Don",  
> > > "middleName": "W.",  
> > > "lastName": "White",  
> > > "specialty": "Adult Retrovirology"  
> > > }'
> > > 
> > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/2](http://localhost:9200/personsearch/xyzemployee/2)" -d'  
> > > {  
> > > "firstName": "Terrance",  
> > > "middleName": "G.",  
> > > "lastName": "Gartner",  
> > > "specialty": "Retrovirology"  
> > > }'
> > > 
> > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/3](http://localhost:9200/personsearch/xyzemployee/3)" -d'  
> > > {  
> > > "firstName": "Carter",  
> > > "middleName": "L.",  
> > > "lastName": "Taylor",  
> > > "specialty": "Pediatric Retrovirology"  
> > > }'
> > > 
> > > curl -XGET "[http://localhost:9200/personsearch/xyzemployee/\_](http://localhost:9200/personsearch/xyzemployee/_)  
> > > search?pretty=true" -d'  
> > > {  
> > > "query": {  
> > > "match": {  
> > > "specialty": "retrovirology"  
> > > }  
> > > }  
> > > }'
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > 
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%  
> > > [40googlegroups.com](http://40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBROoQJ\_QY-6wv849oJSSH0krTQK%2B%3D%2BP9vs\_Ps7svjRTA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBROoQJ_QY-6wv849oJSSH0krTQK%2B%3D%2BP9vs_Ps7svjRTA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [July 22, 2014, 9:37pm UTC](https://discuss.elastic.co/t/help-with-synonyms/18800/5 "2014-07-22T21:37:24Z")

</div>

I appreciate the fact that you want to know why you shouldn't use synonyms  
at query time. I couldn't find the following articles during my last  
response (I read them a while back and I have waaaaay too many bookmarks),  
but I finally found them:

> **[Lucene's TokenStreams are actually graphs!](https://blog.mikemccandless.com/2012/04/lucenes-tokenstreams-are-actually.html)**
>
> Lucene's TokenStream class produces the sequence of tokens to be indexed for a document's fields. The API is an iterator: you call increme...

> **[Better synonym handling in Solr](https://nolanlawson.com/2012/10/31/better-synonym-handling-in-solr/)**
>
> Update: Download the plugin on Github. It’s a pretty common scenario when working with a Solr-powered search engine: you have a list of synonyms, and you want user queries to match documents …

--  
Ivan

On Tue, Jul 22, 2014 at 11:03 AM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> A couple of reasons. The biggest issue is multi word synonyms since the  
> query parser will tokenize the query before analysis is applied. Also,  
> scoring could be affected and the results can be screwy. Here is a better  
> write up:
> 
> [AnalyzersTokenizersTokenFilters - Solr - Apache Software Foundation](http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory)
> 
> --  
> Ivan
> 
> On Tue, Jul 22, 2014 at 10:47 AM, Daniel Yim [danielyim@gmail.com](mailto:danielyim@gmail.com) wrote:
> 
> > Thank you! That solved the initial issue.
> > 
> > Could you expand on why I would need two analyzers? I did what you asked,  
> > but I am unsure of the reason behind it and would like to learn.
> > 
> > Here are my updated settings:
> > 
> > curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
> > {  
> > "settings": {  
> > "index": {  
> > "analysis": {  
> > "analyzer": {  
> > "XYZSynAnalyzer": {  
> > "tokenizer": "whitespace",  
> > "filter": [  
> > "lowercase",  
> > "XYZSynFilter"  
> > ]  
> > },  
> > "MyAnalyzer": {  
> > "tokenizer": "standard",  
> > "filter": [  
> > "standard",  
> > "lowercase",  
> > "stop"  
> > ]  
> > }  
> > },  
> > "filter": {  
> > "XYZSynFilter": {  
> > "type": "synonym",  
> > "synonyms": [  
> > "aids, retrovirology"  
> > ]  
> > }  
> > }  
> > }  
> > }  
> > },  
> > "mappings": {  
> > "xyzemployee": {  
> > "\_all": {  
> > "analyzer": "XYZSynAnalyzer"  
> > },  
> > "properties": {  
> > "firstName": {  
> > "type": "string"  
> > },  
> > "lastName": {  
> > "type": "string"  
> > },  
> > "middleName": {  
> > "type": "string",  
> > "include\_in\_all": false,  
> > "index": "not\_analyzed"  
> > },  
> > "specialty": {  
> > "type": "string",  
> > "index\_analyzer": "XYZSynAnalyzer",  
> > "search\_analyzer": "MyAnalyzer"  
> > }  
> > }  
> > }  
> > }  
> > }'
> > 
> > On Tuesday, July 22, 2014 11:56:40 AM UTC-5, Ivan Brusic wrote:
> > 
> > > Your issue is casing. You are only applying the synonym filter, which by  
> > > default does not lowercase terms. You can either set ignore\_case to true  
> > > for the synonym filter or apply a lower case filter before the synonym. I  
> > > prefer to use the latter approach since I prefer to have all my analyzed  
> > > tokens lowercased.
> > > 
> > > Also, you should only apply the synonym filter at index time. You would  
> > > need to create two similar analyzers, one with the synonym filter and one  
> > > without. You can set the different ones via index\_analyzer and  
> > > search\_analyzer.
> > > 
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/)  
> > > reference/current/mapping-core-types.html#string
> > > 
> > > Cheers,
> > > 
> > > Ivan
> > > 
> > > On Tue, Jul 22, 2014 at 9:33 AM, Daniel Yim [dani...@gmail.com](mailto:dani...@gmail.com) wrote:
> > > 
> > > > Hi everyone,
> > > > 
> > > > I am relatively new to elasticsearch and am having issues with getting  
> > > > my synonym filter to work. Can you take a look at the settings and tell me  
> > > > where I am going wrong?
> > > > 
> > > > I am expecting the search for "aids" to match the search results if I  
> > > > were to search for "retrovirology", but this is not happening.
> > > > 
> > > > Thanks!
> > > > 
> > > > curl -XDELETE "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)"
> > > > 
> > > > curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
> > > > {  
> > > > "settings": {  
> > > > "index": {  
> > > > "analysis": {  
> > > > "analyzer": {  
> > > > "XYZSynAnalyzer": {  
> > > > "tokenizer": "standard",  
> > > > "filter": [  
> > > > "XYZSynFilter"  
> > > > ]  
> > > > }  
> > > > },  
> > > > "filter": {  
> > > > "XYZSynFilter": {  
> > > > "type": "synonym",  
> > > > "synonyms": [  
> > > > "aids, retrovirology"  
> > > > ]  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > },  
> > > > "mappings": {  
> > > > "xyzemployee": {  
> > > > "\_all": {  
> > > > "analyzer": "XYZSynAnalyzer"  
> > > > },  
> > > > "properties": {  
> > > > "firstName": {  
> > > > "type": "string"  
> > > > },  
> > > > "lastName": {  
> > > > "type": "string"  
> > > > },  
> > > > "middleName": {  
> > > > "type": "string",  
> > > > "include\_in\_all": false,  
> > > > "index": "not\_analyzed"  
> > > > },  
> > > > "specialty": {  
> > > > "type": "string",  
> > > > "analyzer": "XYZSynAnalyzer"  
> > > > }  
> > > > }  
> > > > }  
> > > > }  
> > > > }'
> > > > 
> > > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/1](http://localhost:9200/personsearch/xyzemployee/1)" -d'  
> > > > {  
> > > > "firstName": "Don",  
> > > > "middleName": "W.",  
> > > > "lastName": "White",  
> > > > "specialty": "Adult Retrovirology"  
> > > > }'
> > > > 
> > > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/2](http://localhost:9200/personsearch/xyzemployee/2)" -d'  
> > > > {  
> > > > "firstName": "Terrance",  
> > > > "middleName": "G.",  
> > > > "lastName": "Gartner",  
> > > > "specialty": "Retrovirology"  
> > > > }'
> > > > 
> > > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/3](http://localhost:9200/personsearch/xyzemployee/3)" -d'  
> > > > {  
> > > > "firstName": "Carter",  
> > > > "middleName": "L.",  
> > > > "lastName": "Taylor",  
> > > > "specialty": "Pediatric Retrovirology"  
> > > > }'
> > > > 
> > > > curl -XGET "[http://localhost:9200/personsearch/xyzemployee/\_](http://localhost:9200/personsearch/xyzemployee/_)  
> > > > search?pretty=true" -d'  
> > > > {  
> > > > "query": {  
> > > > "match": {  
> > > > "specialty": "retrovirology"  
> > > > }  
> > > > }  
> > > > }'
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > 
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCp2%2BQVRBsTDG-3KoJeSsvqZcg%3DxEeCq%3DE1PEETp4GmLw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCp2%2BQVRBsTDG-3KoJeSsvqZcg%3DxEeCq%3DE1PEETp4GmLw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Daniel\_Yim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_yim/32/1367_2.png) [@Daniel\_Yim](https://discuss.elastic.co/u/Daniel_Yim)\
**Post date:** [July 23, 2014, 5:21pm UTC](https://discuss.elastic.co/t/help-with-synonyms/18800/6 "2014-07-23T17:21:15Z")

</div>

Ivan, thank you feeding my curiosity! The first one really gave me an  
"a-ha!" moment when I saw the images of the synonym matching as directed  
graphs. It put some insight as to why my multi-token synonyms were being  
expanded a certain way.

On Tuesday, July 22, 2014 4:37:45 PM UTC-5, Ivan Brusic wrote:

> I appreciate the fact that you want to know why you shouldn't use synonyms  
> at query time. I couldn't find the following articles during my last  
> response (I read them a while back and I have waaaaay too many bookmarks),  
> but I finally found them:
> 
> [Changing Bits: Lucene's TokenStreams are actually graphs!](http://blog.mikemccandless.com/2012/04/lucenes-tokenstreams-are-actually.html)  
> [Better synonym handling in Solr | Read the Tea Leaves](http://nolanlawson.com/2012/10/31/better-synonym-handling-in-solr/)
> 
> --  
> Ivan
> 
> On Tue, Jul 22, 2014 at 11:03 AM, Ivan Brusic \<[iv...@brusic.com](mailto:iv...@brusic.com)  
> \<javascript:\>\> wrote:
> 
> > A couple of reasons. The biggest issue is multi word synonyms since the  
> > query parser will tokenize the query before analysis is applied. Also,  
> > scoring could be affected and the results can be screwy. Here is a better  
> > write up:
> > 
> > [AnalyzersTokenizersTokenFilters - Solr - Apache Software Foundation](http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory)
> > 
> > --  
> > Ivan
> > 
> > On Tue, Jul 22, 2014 at 10:47 AM, Daniel Yim \<[dani...@gmail.com](mailto:dani...@gmail.com)  
> > \<javascript:\>\> wrote:
> > 
> > > Thank you! That solved the initial issue.
> > > 
> > > Could you expand on why I would need two analyzers? I did what you  
> > > asked, but I am unsure of the reason behind it and would like to learn.
> > > 
> > > Here are my updated settings:
> > > 
> > > curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
> > > {  
> > > "settings": {  
> > > "index": {  
> > > "analysis": {  
> > > "analyzer": {  
> > > "XYZSynAnalyzer": {  
> > > "tokenizer": "whitespace",  
> > > "filter": [  
> > > "lowercase",  
> > > "XYZSynFilter"  
> > > ]  
> > > },  
> > > "MyAnalyzer": {  
> > > "tokenizer": "standard",  
> > > "filter": [  
> > > "standard",  
> > > "lowercase",  
> > > "stop"  
> > > ]  
> > > }  
> > > },  
> > > "filter": {  
> > > "XYZSynFilter": {  
> > > "type": "synonym",  
> > > "synonyms": [  
> > > "aids, retrovirology"  
> > > ]  
> > > }  
> > > }  
> > > }  
> > > }  
> > > },  
> > > "mappings": {  
> > > "xyzemployee": {  
> > > "\_all": {  
> > > "analyzer": "XYZSynAnalyzer"  
> > > },  
> > > "properties": {  
> > > "firstName": {  
> > > "type": "string"  
> > > },  
> > > "lastName": {  
> > > "type": "string"  
> > > },  
> > > "middleName": {  
> > > "type": "string",  
> > > "include\_in\_all": false,  
> > > "index": "not\_analyzed"  
> > > },  
> > > "specialty": {  
> > > "type": "string",  
> > > "index\_analyzer": "XYZSynAnalyzer",  
> > > "search\_analyzer": "MyAnalyzer"  
> > > }  
> > > }  
> > > }  
> > > }  
> > > }'
> > > 
> > > On Tuesday, July 22, 2014 11:56:40 AM UTC-5, Ivan Brusic wrote:
> > > 
> > > > Your issue is casing. You are only applying the synonym filter, which  
> > > > by default does not lowercase terms. You can either set ignore\_case to true  
> > > > for the synonym filter or apply a lower case filter before the synonym. I  
> > > > prefer to use the latter approach since I prefer to have all my analyzed  
> > > > tokens lowercased.
> > > > 
> > > > Also, you should only apply the synonym filter at index time. You would  
> > > > need to create two similar analyzers, one with the synonym filter and one  
> > > > without. You can set the different ones via index\_analyzer and  
> > > > search\_analyzer.
> > > > 
> > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/)  
> > > > reference/current/mapping-core-types.html#string
> > > > 
> > > > Cheers,
> > > > 
> > > > Ivan
> > > > 
> > > > On Tue, Jul 22, 2014 at 9:33 AM, Daniel Yim [dani...@gmail.com](mailto:dani...@gmail.com) wrote:
> > > > 
> > > > > Hi everyone,
> > > > > 
> > > > > I am relatively new to elasticsearch and am having issues with getting  
> > > > > my synonym filter to work. Can you take a look at the settings and tell me  
> > > > > where I am going wrong?
> > > > > 
> > > > > I am expecting the search for "aids" to match the search results if I  
> > > > > were to search for "retrovirology", but this is not happening.
> > > > > 
> > > > > Thanks!
> > > > > 
> > > > > curl -XDELETE "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)"
> > > > > 
> > > > > curl -XPUT "[http://localhost:9200/personsearch](http://localhost:9200/personsearch)" -d'  
> > > > > {  
> > > > > "settings": {  
> > > > > "index": {  
> > > > > "analysis": {  
> > > > > "analyzer": {  
> > > > > "XYZSynAnalyzer": {  
> > > > > "tokenizer": "standard",  
> > > > > "filter": [  
> > > > > "XYZSynFilter"  
> > > > > ]  
> > > > > }  
> > > > > },  
> > > > > "filter": {  
> > > > > "XYZSynFilter": {  
> > > > > "type": "synonym",  
> > > > > "synonyms": [  
> > > > > "aids, retrovirology"  
> > > > > ]  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > },  
> > > > > "mappings": {  
> > > > > "xyzemployee": {  
> > > > > "\_all": {  
> > > > > "analyzer": "XYZSynAnalyzer"  
> > > > > },  
> > > > > "properties": {  
> > > > > "firstName": {  
> > > > > "type": "string"  
> > > > > },  
> > > > > "lastName": {  
> > > > > "type": "string"  
> > > > > },  
> > > > > "middleName": {  
> > > > > "type": "string",  
> > > > > "include\_in\_all": false,  
> > > > > "index": "not\_analyzed"  
> > > > > },  
> > > > > "specialty": {  
> > > > > "type": "string",  
> > > > > "analyzer": "XYZSynAnalyzer"  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }  
> > > > > }'
> > > > > 
> > > > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/1](http://localhost:9200/personsearch/xyzemployee/1)" -d'  
> > > > > {  
> > > > > "firstName": "Don",  
> > > > > "middleName": "W.",  
> > > > > "lastName": "White",  
> > > > > "specialty": "Adult Retrovirology"  
> > > > > }'
> > > > > 
> > > > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/2](http://localhost:9200/personsearch/xyzemployee/2)" -d'  
> > > > > {  
> > > > > "firstName": "Terrance",  
> > > > > "middleName": "G.",  
> > > > > "lastName": "Gartner",  
> > > > > "specialty": "Retrovirology"  
> > > > > }'
> > > > > 
> > > > > curl -XPUT "[http://localhost:9200/personsearch/xyzemployee/3](http://localhost:9200/personsearch/xyzemployee/3)" -d'  
> > > > > {  
> > > > > "firstName": "Carter",  
> > > > > "middleName": "L.",  
> > > > > "lastName": "Taylor",  
> > > > > "specialty": "Pediatric Retrovirology"  
> > > > > }'
> > > > > 
> > > > > curl -XGET "[http://localhost:9200/personsearch/xyzemployee/\_](http://localhost:9200/personsearch/xyzemployee/_)  
> > > > > search?pretty=true" -d'  
> > > > > {  
> > > > > "query": {  
> > > > > "match": {  
> > > > > "specialty": "retrovirology"  
> > > > > }  
> > > > > }  
> > > > > }'
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > > 
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%  
> > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/2e227a33-d935-4d22-89fb-57b59358c89d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c860ecf3-e4ae-4aad-8a44-e41166f7995e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/cafbbaf9-c39e-4f6d-ad6c-e367d54bf8fa%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/cafbbaf9-c39e-4f6d-ad6c-e367d54bf8fa%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:13am UTC](https://discuss.elastic.co/t/help-with-synonyms/18800/7 "2017-07-06T01:13:51Z")

</div>


