# Ampersand synonym in YAML?

**URL:** <https://discuss.elastic.co/t/ampersand-synonym-in-yaml/20131>\
**Category:** Elasticsearch\
**Created:** [October 8, 2014, 6:21am UTC](https://discuss.elastic.co/t/ampersand-synonym-in-yaml/20131 "2014-10-08T06:21:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lee\_Gee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lee_gee/32/1217_2.png) [@Lee\_Gee](https://discuss.elastic.co/u/Lee_Gee)\
**Post date:** [October 8, 2014, 6:21am UTC](https://discuss.elastic.co/t/ampersand-synonym-in-yaml/20131/1 "2014-10-08T06:21:43Z")

</div>

```
  name_synonyms:
      type: synonym
      synonyms:
        - "1,one"
        # - "&,and,+=>and"
        - '& => and'

```

How can I use YAML to correctly configure a synonym for ampersands and the  
'plus' symbol and the word 'and'?

The above synonym for 1/one seems to work.

Thanks  
Lee

--  
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/d4557c3f-8c90-421a-a841-797135c34d86%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d4557c3f-8c90-421a-a841-797135c34d86%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, 12:57am UTC](https://discuss.elastic.co/t/ampersand-synonym-in-yaml/20131/2 "2017-07-06T00:57:46Z")

</div>

Closed on July 6, 2017, 12:57am UTC


