any one help me how to resolve this issue, while indexing time facing this exception ?
my _id is : http:/****** like
bulkresponse json{"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 522;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: id is too long, must be no longer than 512 bytes but was: 522;"},"status":400}
Your document ID seems too long and may also contain illegal characters (as it seems to be a URL). I would recommend instead creating a hash, e.g. MD5 or SHA1, of the id string and use this as an ID.
I would recommend staying away from extremely long document IDs (especially if they can contain unsafe characters) as they can take up quite a lot of disk space. Not sure if it is possible to override it.
That is a completely separate question, so please open a new thread with a proper description. Include which versions you are using as well as how you are currently indexing data, e.g. language client used.
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.