Hi Team,
I am looking for a solution to index delta data for an existing index using
Nest (.Net). While on searching, I found the below code snippet for upsert..
client.Update(s => s
.Index("myindex")
.Id(id)
.Document(objins)
.Upsert(objins)
);
My Id field is not int.. it is a string.
My questions are
in this update statement, do we need to have two different objecttype
(old and updated) aka (T,K) ? what if the both the objects were same (aka
<T,T> only its property is changed? for e.g, Car is the object . Initially
the data entered for color = "green", then it got updated as color =
"forrest green". how do i perform update for this?
2.
I tried having both as same object. (T, T), rather updating it is insert
the same document twice rather than updating.
3.
If i don't mention upsert in the above command.. there is no insert
happening for the new document from the delta.
All sort of help are appreciated.
Regards
Madhavan.TR
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f4525944-0375-43c7-b262-d07e858a4da3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.