I am describing an article about ElasticSearch, and I am trying to bring this example to my engine.
Example:
curl -XPUT 'elasticsearch:9200/twitter/tweet/1' -d '{ "user": "david", "message": "C'est mon premier message de la journรฉe !", "postDate": "2010-03-15T15:23:56", "priority": 2, "rank": 10.2 }'
I am trying to send this information via a bash file (I am using Putty), but I have this errror:
{"error":"MapperParsingException[object mapping for [tweet] tried to parse as object, but got EOF, has a concrete value been provided to it?]","status":400}
I am also trying to see one error with "cat -e tweet.sh", but I do not understand why I have this error.
Thanks in advance.
pi-2r source share