elasticsearch: work on a copy of the document set when bulk indexing