Closed jeonghanlee closed 4 years ago
Hi Kunal,
Here are three changes for this script as follows
added -H 'Content-Type: application/json' in curl command in order to remove the following error:
-H 'Content-Type: application/json'
"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406
replaced string with text with the full searchable text, because the string type was removed since ES 5.
string
text
added the little cosmetic print command to distinguish the output of curl in a terminal.
Please let me know what you think.
I closed it now, will contact you through the email.
Hi Kunal,
Here are three changes for this script as follows
added
-H 'Content-Type: application/json'
in curl command in order to remove the following error:replaced
string
withtext
with the full searchable text, because the string type was removed since ES 5.added the little cosmetic print command to distinguish the output of curl in a terminal.
Please let me know what you think.