Is there a limit on the maximum length of a document ID in elastic
search?
When I index docs, I pass in my desired IDs, and for some uses we are
using strings that can get quite long - like 600 characters, perhaps.
I like to know if there is a hard limit, or a performance limit, to
this.....
There isn't a limit, but it can become wasteful space / memory wise.
On Wednesday, April 20, 2011 at 7:37 AM, cwho80 wrote:
Is there a limit on the maximum length of a document ID in elastic
search?
When I index docs, I pass in my desired IDs, and for some uses we are
using strings that can get quite long - like 600 characters, perhaps.
I like to know if there is a hard limit, or a performance limit, to
this.....
if (id != null && id.getBytes(StandardCharsets.UTF_8).length > 512) {
validationException = addValidationError("id is too long, must be no longer than 512 bytes but was: " +
id.getBytes(StandardCharsets.UTF_8).length, validationException);
}
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.