documentation Elasticsearch 状态:
The index operation can be executed without specifying the id. In such a case, an id will be generated automatically.
但是它不提供任何关于ids属性的信息。
- 长度是多少(最小/最大)?
我猜是22
。 - id中使用了哪些字符?
我猜是[-_A-Za-z0-9]
- 生成的 ID 的属性是否可以随时更改(这是 API 的一部分)?
最佳答案
自动生成的 ID 是随机的 base64 -编码UUIDs . URL-safe mode中使用了base64算法因此 -
和 _
字符可能出现在 ID 中。
关于elasticsearch - elasticsearch生成的ids的长度和字符是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19865756/