// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.reindex({
  body: {
    max_docs: 10,
    source: {
      index: 'twitter',
      query: {
        function_score: {
          random_score: {},
          min_score: 0.9
        }
      }
    },
    dest: {
      index: 'random_twitter'
    }
  }
})
console.log(response)
----

