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


(gskema) #1

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

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?

# 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

(system) #2

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