If I understand what you're asking correctly, the only thing that you need to change in order to get that request to work in the Dev Tools is to remove the host and port... ie:
# Create the accounts index, and a single document
POST accounts/person/1
{
"name": "John",
"lastname": "Doe",
"job_description": "Systems administrator and Linus specialist"
}
# Retrieve that document
GET accounts/person/1
# Delete the accounts index
DELETE accounts
Indeed thats correct, I was able to run it that way.
However when I tried to do > POST accounts/person/1/_update
to update the typo is gicing me an error >
{
"error": {
"root_cause":[
{
"type":"action_requested_validation_exeption",
"reason": "validation failed: 1: script or doc is missing;"
}
],
"type":"action_requested_validation_exeption",
"reason": "validation failed: 1: script or doc is missing;"
},
"status":400
}
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.