Indexing multiple child documents by query

Is there any way I can index multiple child documents by query.

Let’s say I have 10K product document and I have customer to whom all 10k orders are applicable. I am storing product as parent and customer as child. Now I want to add same customer to all products.

Can I add 10k child, one under each parent, at once or by query instead of adding one by one?

I am not aware of any way to do what you want within Elasticsearch so you may need to do it externally. If you are not already I would recommmend you use the bulk API to add the documents.

Is there any option to normalize the data before loading to achieve the same?

I do not understand what you mean. Could you please elaborate?

As far as I know there is no way to do this irrespective of how data is structured.

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