In ES 5.6, using Nest API, we were doing Create operation using following code...
var descriptor = new BulkDescriptor();
descriptor.Index<JObject>(i => i
.Index(esClient.IndexName)
.Type(documentType)
.Document(document));
esClient.Client.BulkAsync(descriptor);
This code used to work absolutely fine, and we were seeing the documents were inserting appropriately in the ES 5.6, example -
{
"_index": "lsss_2015_dummy",
"_type": "serviceobject",
"_id": "74401145-1751-4253-8dfe-a0200065e0b2",
"_version": 4266,
"_score": 1,
"_source": {
"ServiceId": "74401145-1751-4253-8dfe-a0200065e0b2",
"Version": "47b62897-c11f-4a17-8802-303cf912d119",
"Type": 1
}
}
After upgrading to ES 6.2.3 and Updating Nest/ES.NET API, this does not work anymore, it actually insert the document with the field, but document does not contains any values..
example
{
"_index": "lsss_2015_dummy",
"_type": "serviceobject",
"_id": "74401145-1751-4253-8dfe-a0200065e0b2",
"_version": 4266,
"_score": 1,
"_source": {
"ServiceId": "",
"Version": "",
"Type": ""
}
}
Anyone had similar issue, or any comments on this about how to resolve it , I am not sure if it is because of jObject type, I looked at the upgrade documentation, didnt find anything related to it..
Please help.