When using UpdateByQuery it appears the return json for _source is modified and fields are returned out of order

Hi,
I have an issue with using C# NEST low level client UpdateByQuery method. When I update index documents with this method, properties in _source get shuffled. Fields are returned out of order for the updated documents in Kibana UI.
Is any way to preserve order of fields in _source after update?
Thanks

JSON serializers typically do not guarantee any specific ordering, so if you e.g. perform an update by query with a script, the document need to be parsed and then modified before being serialized back to JSON. Given that fields could be added and/or removed I do not think order can be guaranteed.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.