I am looking for an example where we can push below sample JSON string to ElasticSearch without using classes in REST api.
{
"UserID":1,
"Username": "Test",
"EmailID": "[email protected]"
}
We get the input as xml and we convert it to JSON string using NewtonSoft.JSON dll.
I know REST api is strongly typed. But is there any way to insert JSON string to Elastic without uses classes in REST api?
You can use low level client to pass raw json.
UPDATE
Based on documentation, try this one: