Hi,
I have an index which has nested list object. I need to only update certain values based on a condition. List of history with dates and values I need to update only values matching with dates.
In the below example
I only want to update historydate 2020-02-01 value not other historydates values in history in NEST C# Client.
I couldn't find NEST documentation anywhere. Could someone please help me.
Example data
[
{
"id": 1,
"description": "market 1",
"salesprice": 10.9,
"cost": 7.95957,
"history": [
{
"historydate": "2020-01-01",
"quantity": 1
},
{
"historydate": "2020-02-01",
"quantity": 2
}
]
},
{
"id": 2,
"description": "market 2",
"salesprice": 12,
"cost": 12,
"history": [
{
"historydate": "2020-01-01",
"quantity": 1
},
{
"historydate": "2020-02-01",
"quantity": 2
}
]
},
{
"id": 3,
"description": "market3",
"salesprice": 15,
"cost": 15,
"history": [
{
"historydate": "2020-01-01",
"quantity": 10
},
{
"historydate": "2020-02-01",
"quantity": 20
},
{
"historydate": "2020-03-01",
"quantity": 30
}
]
}
]
Thank you