I have few queries regarding the es :
(1) : can we move the data from one index to another : - I have some data in one index called latest-index and after some action triggered from back-end , I want to move my data from latest-index to archive-index . So currently I am getting all the data from latest-index and then pushing the whole data into archive index and then deleting the documents from latest-index , but this is a overhead because data is already available in my es cluster , and only what I need to do is move the data.
is there any way possible for this ?
(2) : For get query in elastic , default search count is 10 (we can see only 10 result default ). and max size is 10000000 (10 million) , can it be dynamically possible that if I have 400 records i will get 400 only and if i have more than 10 million then I will get it accordingly, so I do not have to specify the number of the documents in get query .