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
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.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.