Copy of the index with specified sample size

Is there a way to make a copy of the index into another cluster with just a sample of the source index? I'm using ES6 and wanted to see if there are any easier ways to get a sample of the index for testing purposes?

Thanks!

Hey,

how about using reindex from remote with a query to limit the data? See https://www.elastic.co/guide/en/elasticsearch/reference/6.3/docs-reindex.html#reindex-from-remote

--Alex

Thanks for the pointer, will give it a try. Not sure how it works but will it be a random sample if I do a limit?

no, it is not random. Either a document matches or does not match the query, sorting does not matter. Hope that makes sense.

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