Here is my table
var utilsApi = new UtilsApi();
string tableBody = "create table if not exists products (ProductId text, Name text,Sku text,ShortDescription text,FullDescription text,Price float,Published bool,ManufacturerPartNumber text,VendorId integer,Vendor text)";
utilsApi.Sql(tableBody, true);
Now I am preparing update document request as below
Dictionary<string, Object> doc = new Dictionary<string, Object>
{
{"ProductId", "1"},
{"Name", "build-your-own-computer 222222"},
{"Sku", "SKU_Product_1"},
{"ShortDescription", ""},
{"FullDescription", ""},
{"Price", 1200.0000},
{"Published", true},
{"ManufacturerPartNumber", ""},
{"VendorId", 0},
{"Vendor", ""}
};
UpdateDocumentRequest updateDocumentRequest = new UpdateDocumentRequest(
index: "products",
id: 1,
doc: doc
);
UpdateResponse updateResponse = indexApi.Update(updateDocumentRequest);
When I try to update this why I am getting error/exception as mentioned in above question ?
Something wrong with my request ?
Anyone please suggest solution for this