Can the auto-generated Id be used for file name?

Hi All,
I would like to use the ID of the doc as a file name. Is that safe ?
Can it happen that i encounter strings with chars that are not allowed on some platforms ?

I will use that on Linux.

Thanks

See https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/index/IndexRequest.java#L631 then https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/common/UUIDs.java#L34 then https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/common/TimeBasedUUIDGenerator.java#L59

when you follow you will see that this is a base64 string like JfzsbW0B6_WbAWCTv4io...

however there are no guarantees that this will stay the same forever, as this can be considered an internal implementation detail.

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