# ElasticSearch.pm 0.36 released, now with support for reindexing

**URL:** https://discuss.elastic.co/t/elasticsearch-pm-0-36-released-now-with-support-for-reindexing/4285
**Category:** Elasticsearch
**Created:** [April 24, 2011, 8:08pm UTC](https://discuss.elastic.co/t/elasticsearch-pm-0-36-released-now-with-support-for-reindexing/4285 "2011-04-24T20:08:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)
#### Post date: [April 24, 2011, 8:08pm UTC](https://discuss.elastic.co/t/elasticsearch-pm-0-36-released-now-with-support-for-reindexing/4285/1 "2011-04-24T20:08:22Z")

</div>

Hi All

Given how often people ask about reindexing their data, I've added  
support for it to ElasticSearch.pm (the Perl API).

It now supports reindexing data from one index to another on the same  
cluster, or from one cluster to another, transforming it on the way

For example, to copy the ElasticSearch website index locally, you could  
do:

```
my $local = ElasticSearch->new(
    servers => 'localhost:9200'
);

my $remote = ElasticSearch->new(
    servers => 'search.elasticsearch.org:80',
    no_refresh => 1
);

my $source = $remote->scrolled_search(
    search_type => 'scan',
    scroll => '5m'
);

$local->reindex(source=>$source);

```

More details and other new features blogged about here:  
[http://blogs.perl.org/users/clinton\_gormley/2011/04/elasticsearchpm-v036-now-with-extra-sugar.html](http://blogs.perl.org/users/clinton_gormley/2011/04/elasticsearchpm-v036-now-with-extra-sugar.html)

clint

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 4:07am UTC](https://discuss.elastic.co/t/elasticsearch-pm-0-36-released-now-with-support-for-reindexing/4285/2 "2017-07-06T04:07:42Z")

</div>


