# What is the complete character escape map for date math index names in URI?

**URL:** <https://discuss.elastic.co/t/what-is-the-complete-character-escape-map-for-date-math-index-names-in-uri/71089>\
**Category:** Elasticsearch\
**Created:** [January 10, 2017, 1:20pm UTC](https://discuss.elastic.co/t/what-is-the-complete-character-escape-map-for-date-math-index-names-in-uri/71089 "2017-01-10T13:20:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gskema](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gskema/32/13648_2.png) [@gskema](https://discuss.elastic.co/u/gskema)\
**Post date:** [January 10, 2017, 1:20pm UTC](https://discuss.elastic.co/t/what-is-the-complete-character-escape-map-for-date-math-index-names-in-uri/71089/1 "2017-01-10T13:20:52Z")

</div>

I'm working on a PHP client fix for escaping some URI characters in index names with date math (ruflin/elastica)

I would like to know if this character escape map is complete:

[https://www.elastic.co/guide/en/elasticsearch/reference/5.x/date-math-index-names.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/date-math-index-names.html)

In the example below, I can see the comma `,` was escaped as well, but is not present in the character escape map.  
Should it be included?

```auto
# GET /<logstash-{now/d-2d}>,<logstash-{now/d-1d}>,<logstash-{now/d}>/_search
GET /%3Clogstash-%7Bnow%2Fd-2d%7D%3E%2C%3Clogstash-%7Bnow%2Fd-1d%7D%3E%2C%3Clogstash-%7Bnow%2Fd%7D%3E/_search

```

---

<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:** [February 7, 2017, 1:21pm UTC](https://discuss.elastic.co/t/what-is-the-complete-character-escape-map-for-date-math-index-names-in-uri/71089/2 "2017-02-07T13:21:20Z")

</div>

Closed on February 7, 2017, 1:21pm UTC

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