I am using nest client with my application, I am trying to find a way to create a copy of multiple documents and change their properties. So far I have only got to this solution - Bulk api, but this solution requires me to get all the documents to my client and only then update them, which will take a lot of time and memory since I need to update more than 20,000 records at a time.
Is there a way to perform all the work on the elastic server instead of getting all the documents and sending them back?
"cms_line": "<cms_hl1>Like</cms_hl1> it is wrapped in the luxury all of us deserve.<revuze_cms_hidden_context>rid=203697490</revuze_cms_hidden_context>",
"quote": "Like it is wrapped in the luxury all of us deserve.",
I have multiple documents that I want to relate to aspect_id. Sure I can change the aspect_id field to an array and have multiple entries, but this will make it difficult for me to filter the results later.
That is why I prefer to create a copy with different property values.
It looks like this is potentially time based data?
If there is a timestamp attached to each of these documents, then I would treat it like other time based data and just add each document as an event stream. That means you could easily create the document in your app rather than having to collect it from Elasticsearch.