# Data migration from solr to elasticsearch

**URL:** https://discuss.elastic.co/t/data-migration-from-solr-to-elasticsearch/14649
**Category:** Elasticsearch
**Created:** [November 30, 2013, 5:54pm UTC](https://discuss.elastic.co/t/data-migration-from-solr-to-elasticsearch/14649 "2013-11-30T17:54:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Bharvi\_Dixit\_2](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@Bharvi\_Dixit\_2](https://discuss.elastic.co/u/Bharvi_Dixit_2)
#### Post date: [November 30, 2013, 5:54pm UTC](https://discuss.elastic.co/t/data-migration-from-solr-to-elasticsearch/14649/1 "2013-11-30T17:54:04Z")

</div>

Hi all,

I am using solr-river plugin for migrating all the data from solr3.6 to  
elastic search.  
My solr instance contains 5 cores and have to migrate all the cores into  
correspondinx indexes of elastic search.  
I have migrated one core into elastic search using solr-river but the  
problem is:  
During migration elastic search creates one index with the name "solr" and  
type "import"

1. I want to rename this index to some other name which i am unable to do.
2. I have know clue how can i migrate my all solr cores into different  
indexes into elastic search.

Please help me in these issue..

Thanks in advance.  
Bharvi Dixit

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2415a16d-2156-434b-8915-39afbe156821%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2415a16d-2156-434b-8915-39afbe156821%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)
#### Post date: [December 2, 2013, 9:58am UTC](https://discuss.elastic.co/t/data-migration-from-solr-to-elasticsearch/14649/2 "2013-12-02T09:58:49Z")

</div>

Hi,

I've never used this plugin, but looking at the  
README[https://github.com/javanna/elasticsearch-river-solr/blob/master/README.md](https://github.com/javanna/elasticsearch-river-solr/blob/master/README.md)it  
seems that you have an "index" option that lets you specify where to  
index your data:

```
"index" : {
    "index" : "solr",
    "type" : "import",
    "bulk_size" : 100,
    "max_concurrent_bulk" : 10,
    "mapping" : "",
    "settings": ""
}

```

If you need to take one core at a time and put it in different places, I  
guess you can use multiple rivers with multiple configurations. For example:

"url" : "[http://localhost:8983/solr/core1/](http://localhost:8983/solr/core1/)",

for one river and

"url" : "[http://localhost:8983/solr/core2](http://localhost:8983/solr/core2)",

for another and so on.

Best regards,  
Radu

On Sat, Nov 30, 2013 at 7:54 PM, Bharvi Dixit [bharvidixit@gmail.com](mailto:bharvidixit@gmail.com) wrote:

> Hi all,
> 
> I am using solr-river plugin for migrating all the data from solr3.6 to  
> Elasticsearch.  
> My solr instance contains 5 cores and have to migrate all the cores into  
> correspondinx indexes of Elasticsearch.  
> I have migrated one core into Elasticsearch using solr-river but the  
> problem is:  
> During migration Elasticsearch creates one index with the name "solr" and  
> type "import"
> 
> 1. I want to rename this index to some other name which i am unable to do.
> 2. I have know clue how can i migrate my all solr cores into different  
> indexes into Elasticsearch.
> 
> Please help me in these issue..
> 
> Thanks in advance.  
> Bharvi Dixit
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/2415a16d-2156-434b-8915-39afbe156821%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2415a16d-2156-434b-8915-39afbe156821%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Performance Monitoring \* Log Analytics \* Search Analytics  
Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHXA0\_2%3Da8wZGVmopa9sQnuGV4BgTLdxLgnjNSUbKoXxQ6sj7Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHXA0_2%3Da8wZGVmopa9sQnuGV4BgTLdxLgnjNSUbKoXxQ6sj7Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Bharvi\_Dixit\_2](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@Bharvi\_Dixit\_2](https://discuss.elastic.co/u/Bharvi_Dixit_2)
#### Post date: [December 2, 2013, 4:47pm UTC](https://discuss.elastic.co/t/data-migration-from-solr-to-elasticsearch/14649/3 "2013-12-02T16:47:15Z")

</div>

Yes Mr. Radu Gheorghe, you are absolutely correct. I had a chat with Mr.  
Luca cavanna too and he pointed out the same thing.  
There is one more issue i am facing and that is if i have to manipulate  
some fields while migration (Some fields needs to be merged and some has to  
be deleted) then how can i do that.  
I know by specifying fields name which needs to be fetched in fl parameter  
but i need to merge the value of some fields into a single one during  
migration. If possible then reply how can i achieve that.

_Thanks for your time and valuable comment._

_Regards,_

_Bharvi Dixit_

On Monday, 2 December 2013 15:28:49 UTC+5:30, Radu Gheorghe wrote:

> Hi,
> 
> I've never used this plugin, but looking at the README[https://github.com/javanna/elasticsearch-river-solr/blob/master/README.md](https://github.com/javanna/elasticsearch-river-solr/blob/master/README.md)it seems that you have an "index" option that lets you specify where to  
> index your data:
> 
> ```
> "index" : {
> "index" : "solr",
> "type" : "import",
> "bulk_size" : 100,
> "max_concurrent_bulk" : 10,
> "mapping" : "",
> "settings": ""
> }
> 
> ```
> 
> If you need to take one core at a time and put it in different places, I  
> guess you can use multiple rivers with multiple configurations. For example:
> 
> "url" : "[http://localhost:8983/solr/core1/](http://localhost:8983/solr/core1/)",
> 
> for one river and
> 
> "url" : "[http://localhost:8983/solr/core2](http://localhost:8983/solr/core2)",
> 
> for another and so on.
> 
> Best regards,  
> Radu
> 
> On Sat, Nov 30, 2013 at 7:54 PM, Bharvi Dixit \<[bharv...@gmail.com](mailto:bharv...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi all,
> > 
> > I am using solr-river plugin for migrating all the data from solr3.6 to  
> > Elasticsearch.  
> > My solr instance contains 5 cores and have to migrate all the cores into  
> > correspondinx indexes of Elasticsearch.  
> > I have migrated one core into Elasticsearch using solr-river but the  
> > problem is:  
> > During migration Elasticsearch creates one index with the name "solr"  
> > and type "import"
> > 
> > 1. I want to rename this index to some other name which i am unable to do.
> > 2. I have know clue how can i migrate my all solr cores into different  
> > indexes into Elasticsearch.
> > 
> > Please help me in these issue..
> > 
> > Thanks in advance.  
> > Bharvi Dixit
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/2415a16d-2156-434b-8915-39afbe156821%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2415a16d-2156-434b-8915-39afbe156821%40googlegroups.com)  
> > .  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Performance Monitoring \* Log Analytics \* Search Analytics  
> Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dd49e30d-5c15-4f2e-8096-ba7e1cfb05c2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dd49e30d-5c15-4f2e-8096-ba7e1cfb05c2%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)
#### Post date: [December 2, 2013, 7:15pm UTC](https://discuss.elastic.co/t/data-migration-from-solr-to-elasticsearch/14649/4 "2013-12-02T19:15:40Z")

</div>

I think you can achieve that by using scripting, although it might slow  
down the import time. Have a look at the README, transform section in the  
json, which allows to somehow modify your documents through scripting  
before indexing them.

On Monday, December 2, 2013 5:47:15 PM UTC+1, Bharvi Dixit wrote:

> Yes Mr. Radu Gheorghe, you are absolutely correct. I had a chat with Mr.  
> Luca cavanna too and he pointed out the same thing.  
> There is one more issue i am facing and that is if i have to manipulate  
> some fields while migration (Some fields needs to be merged and some has to  
> be deleted) then how can i do that.  
> I know by specifying fields name which needs to be fetched in fl parameter  
> but i need to merge the value of some fields into a single one during  
> migration. If possible then reply how can i achieve that.
> 
> _Thanks for your time and valuable comment._
> 
> _Regards,_
> 
> _Bharvi Dixit_
> 
> On Monday, 2 December 2013 15:28:49 UTC+5:30, Radu Gheorghe wrote:
> 
> > Hi,
> > 
> > I've never used this plugin, but looking at the README[https://github.com/javanna/elasticsearch-river-solr/blob/master/README.md](https://github.com/javanna/elasticsearch-river-solr/blob/master/README.md)it seems that you have an "index" option that lets you specify where to  
> > index your data:
> > 
> > ```
> > "index" : {
> > "index" : "solr",
> > "type" : "import",
> > "bulk_size" : 100,
> > "max_concurrent_bulk" : 10,
> > "mapping" : "",
> > "settings": ""
> > }
> > 
> > ```
> > 
> > If you need to take one core at a time and put it in different places, I  
> > guess you can use multiple rivers with multiple configurations. For example:
> > 
> > "url" : "[http://localhost:8983/solr/core1/](http://localhost:8983/solr/core1/)",
> > 
> > for one river and
> > 
> > "url" : "[http://localhost:8983/solr/core2](http://localhost:8983/solr/core2)",
> > 
> > for another and so on.
> > 
> > Best regards,  
> > Radu
> > 
> > On Sat, Nov 30, 2013 at 7:54 PM, Bharvi Dixit [bharv...@gmail.com](mailto:bharv...@gmail.com) wrote:
> > 
> > > Hi all,
> > > 
> > > I am using solr-river plugin for migrating all the data from solr3.6 to  
> > > Elasticsearch.  
> > > My solr instance contains 5 cores and have to migrate all the cores into  
> > > correspondinx indexes of Elasticsearch.  
> > > I have migrated one core into Elasticsearch using solr-river but the  
> > > problem is:  
> > > During migration Elasticsearch creates one index with the name "solr"  
> > > and type "import"
> > > 
> > > 1. I want to rename this index to some other name which i am unable to  
> > > do.
> > > 2. I have know clue how can i migrate my all solr cores into different  
> > > indexes into Elasticsearch.
> > > 
> > > Please help me in these issue..
> > > 
> > > Thanks in advance.  
> > > Bharvi Dixit
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/2415a16d-2156-434b-8915-39afbe156821%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2415a16d-2156-434b-8915-39afbe156821%40googlegroups.com)  
> > > .  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > Performance Monitoring \* Log Analytics \* Search Analytics  
> > Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/13a91563-0d70-4fcb-97af-2e990fc61be0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13a91563-0d70-4fcb-97af-2e990fc61be0%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Sam\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@Sam\_Kumar](https://discuss.elastic.co/u/Sam_Kumar)
#### Post date: [June 11, 2014, 12:30pm UTC](https://discuss.elastic.co/t/data-migration-from-solr-to-elasticsearch/14649/5 "2014-06-11T12:30:08Z")

</div>

> hi,

Please help me to migrate solr to Elasticsearch in broadleaf ..

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/955c9b61-d563-4182-bb35-883c3631f2dc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/955c9b61-d563-4182-bb35-883c3631f2dc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:23am UTC](https://discuss.elastic.co/t/data-migration-from-solr-to-elasticsearch/14649/6 "2017-07-06T01:23:18Z")

</div>


