# Are comments supported in the synonyms file?

**URL:** https://discuss.elastic.co/t/are-comments-supported-in-the-synonyms-file/345442
**Category:** Elasticsearch
**Created:** [October 20, 2023, 6:46am UTC](https://discuss.elastic.co/t/are-comments-supported-in-the-synonyms-file/345442 "2023-10-20T06:46:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![peterge1998](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peterge1998/32/126718_2.png) [@peterge1998](https://discuss.elastic.co/u/peterge1998)
#### Post date: [October 20, 2023, 6:46am UTC](https://discuss.elastic.co/t/are-comments-supported-in-the-synonyms-file/345442/1 "2023-10-20T06:46:31Z")

</div>

We set up a new way to deploy the synonyms file to our elasticsearch hosts in our company using gitlab ci cd and ansible. Now we would like to include a comment into the synonyms file, some this like "Ansible managed, edit in this repo: -link-".

Is it possible to comment this line without harming the file structure?

Do I need to put comments in there with a # or maybe with /\*\* \*\*/ ?

---

<div class="post-metadata">

### Author: ![peterge1998](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/peterge1998/32/126718_2.png) [@peterge1998](https://discuss.elastic.co/u/peterge1998)
#### Post date: [October 20, 2023, 8:08am UTC](https://discuss.elastic.co/t/are-comments-supported-in-the-synonyms-file/345442/2 "2023-10-20T08:08:32Z")

</div>

One of our developers mentioned that # is the correct way to add comments in the synonyms file

---

<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: [November 17, 2023, 8:08am UTC](https://discuss.elastic.co/t/are-comments-supported-in-the-synonyms-file/345442/3 "2023-11-17T08:08:40Z")

</div>

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