# How to migrate lucene index into elasticsearch

**URL:** https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732
**Category:** Elasticsearch
**Created:** [November 13, 2014, 6:11pm UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732 "2014-11-13T18:11:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Gaurav\_gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_gupta](https://discuss.elastic.co/u/Gaurav_gupta)
#### Post date: [November 13, 2014, 6:11pm UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732/1 "2014-11-13T18:11:07Z")

</div>

Hi All,

I have an embedded Search Engine in our product which is based on Lucene  
4.8.1 and now I would like to migrate it to latest ElasticSearch 1.4 for  
better distributed support (sharding and replication, mainly). Could you  
guide me how one should migrate the existing indexes created by Lucene to  
ES.

I have referred to the mail thread - migrate lucene index into elasticsearch  
[https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO\_IcJ](https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO_IcJ).  
And based on the discussion in it appears to me that it's not a easy job  
or even not feasible. I am wondering if there is some plugin (river) or  
tool or any work around available to migrate the existing indexes created  
by Lucene to ES.

I googled that an ES plugin available for SOLR to ES migration :  
[http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/](http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/) .  
Do we have someting similar for Lucene to ES migration.

Thanks  
Gaurav

--  
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/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [November 13, 2014, 6:29pm UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732/2 "2014-11-13T18:29:43Z")

</div>

It is almost impossible to use just binary-only Lucene index for migration,  
because Elasticsearch needs additional info which is not available in  
Lucene. The only method is to reindex data over the Elasticsearch API.

There is a bumpy road but I don't know if one ever tried that:

- a custom written tool could traverse the segments and extract field  
information and build a rudimentary mapping (without analyzer, without info  
about \_all and \_source and all Elasticsearch add-ons)

- another tool could try to reconstruct docs (like the tool Luke) and write  
them to a file in bulk format. Not having the source of the docs means it  
must be possible to retrieve the original input from the Lucene index  
(which is almost never the case)

- the result could be re-indexed using the Elasticsearch API (assuming all  
analyzers and tokenizers are in place) but a lot of work would have to be  
done

The preferred way is to rewrite the code that uses the Lucene API to use  
the Elasticsearch API and re-run the indexing process.

Jörg

On Thu, Nov 13, 2014 at 7:11 PM, Gaurav gupta [gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)  
wrote:

> Hi All,
> 
> I have an embedded Search Engine in our product which is based on Lucene  
> 4.8.1 and now I would like to migrate it to latest Elasticsearch 1.4 for  
> better distributed support (sharding and replication, mainly). Could you  
> guide me how one should migrate the existing indexes created by Lucene to  
> ES.
> 
> I have referred to the mail thread - migrate lucene index into  
> elasticsearch  
> [https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO\_IcJ](https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO_IcJ).  
> And based on the discussion in it appears to me that it's not a easy job  
> or even not feasible. I am wondering if there is some plugin (river) or  
> tool or any work around available to migrate the existing indexes created  
> by Lucene to ES.
> 
> I googled that an ES plugin available for SOLR to ES migration :  
> [Trifork Blog - Keep updated on the technical solutions Trifork is working on!](http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/) .  
> Do we have someting similar for Lucene to ES migration.
> 
> Thanks  
> Gaurav
> 
> --  
> 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/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Gaurav\_gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_gupta](https://discuss.elastic.co/u/Gaurav_gupta)
#### Post date: [November 20, 2014, 1:26pm UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732/3 "2014-11-20T13:26:58Z")

</div>

Thanks Jorg for the guidance and I have am trying the suggested approach #1  
and I have further question on it.

As you mentioned - _"- a custom written tool could traverse the segments  
and extract field information and build a rudimentary mapping (without  
analyzer, without info about \_all and \_source and all Elasticsearch  
add-ons)"._

We already have a Lucene Index metadata (i.e. field names, type, analyzer  
etc.) available as an xml, so I can create the mapping without traversing  
the segments. Should I create segment file "segments.gen" using the mapping  
file and using some dummy values and then put all the other old lucene  
index files ( except "segments.gen" ) from existing lucene index files  
(e.g. - segments\_2,\_0.cfe,\_0.cfs,\_0.si,\_1.cfe,\_1.cfs etc.)

_sample mapping xml file :-_  
  
  
true  
Standard  
AddressLine1  
AddressLine1  
true  
string  
  
  
true  
Standard  
Building\_Name  
Building\_Name  
true  
string  
  
  
true  
Keyword  
GNAF\_PID  
GNAF\_PID  
true  
string

...

Thanks

On Thu, Nov 13, 2014 at 11:59 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> It is almost impossible to use just binary-only Lucene index for  
> migration, because Elasticsearch needs additional info which is not  
> available in Lucene. The only method is to reindex data over the  
> Elasticsearch API.
> 
> There is a bumpy road but I don't know if one ever tried that:
> 
> - a custom written tool could traverse the segments and extract field  
> information and build a rudimentary mapping (without analyzer, without info  
> about \_all and \_source and all Elasticsearch add-ons)
> 
> - another tool could try to reconstruct docs (like the tool Luke) and  
> write them to a file in bulk format. Not having the source of the docs  
> means it must be possible to retrieve the original input from the Lucene  
> index (which is almost never the case)
> 
> - the result could be re-indexed using the Elasticsearch API (assuming all  
> analyzers and tokenizers are in place) but a lot of work would have to be  
> done
> 
> The preferred way is to rewrite the code that uses the Lucene API to use  
> the Elasticsearch API and re-run the indexing process.
> 
> Jörg
> 
> On Thu, Nov 13, 2014 at 7:11 PM, Gaurav gupta [gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)  
> wrote:
> 
> > Hi All,
> > 
> > I have an embedded Search Engine in our product which is based on Lucene  
> > 4.8.1 and now I would like to migrate it to latest Elasticsearch 1.4 for  
> > better distributed support (sharding and replication, mainly). Could you  
> > guide me how one should migrate the existing indexes created by Lucene to  
> > ES.
> > 
> > I have referred to the mail thread - migrate lucene index into  
> > elasticsearch  
> > [https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO\_IcJ](https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO_IcJ).  
> > And based on the discussion in it appears to me that it's not a easy job  
> > or even not feasible. I am wondering if there is some plugin (river) or  
> > tool or any work around available to migrate the existing indexes  
> > created by Lucene to ES.
> > 
> > I googled that an ES plugin available for SOLR to ES migration :  
> > [Trifork Blog - Keep updated on the technical solutions Trifork is working on!](http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/) .  
> > Do we have someting similar for Lucene to ES migration.
> > 
> > Thanks  
> > Gaurav
> > 
> > --  
> > 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/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D\_2yuBw1PH1Z0odxz1kA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D_2yuBw1PH1Z0odxz1kA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![otisg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/otisg/32/492_2.png) [@otisg](https://discuss.elastic.co/u/otisg)
#### Post date: [November 22, 2014, 4:44pm UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732/4 "2014-11-22T16:44:41Z")

</div>

You didn't say why you can't just reindex data from original source, but  
that would be the cleanest way and likely the fastest in terms of human  
time (and $) you'll _likely_ spend if you try using a "shortcut".

## Otis

Monitoring \* Alerting \* Anomaly Detection \* Centralized Log Management  
Solr & Elasticsearch Support \* [http://sematext.com/](http://sematext.com/)

On Thursday, November 13, 2014 1:11:08 PM UTC-5, Gaurav gupta wrote:

> Hi All,
> 
> I have an embedded Search Engine in our product which is based on Lucene  
> 4.8.1 and now I would like to migrate it to latest Elasticsearch 1.4 for  
> better distributed support (sharding and replication, mainly). Could you  
> guide me how one should migrate the existing indexes created by Lucene to  
> ES.
> 
> I have referred to the mail thread - migrate lucene index into  
> elasticsearch  
> [https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO\_IcJ](https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO_IcJ).  
> And based on the discussion in it appears to me that it's not a easy job  
> or even not feasible. I am wondering if there is some plugin (river) or  
> tool or any work around available to migrate the existing indexes created  
> by Lucene to ES.
> 
> I googled that an ES plugin available for SOLR to ES migration :  
> [http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/](http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/) .  
> Do we have someting similar for Lucene to ES migration.
> 
> Thanks  
> Gaurav

--  
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/0079a7d4-c71b-4863-9dc5-29d850b04c0e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0079a7d4-c71b-4863-9dc5-29d850b04c0e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)
#### Post date: [November 22, 2014, 10:41pm UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732/5 "2014-11-22T22:41:48Z")

</div>

I can not tell if it will work, but if you could translate your xml mapping  
into an Elasticsearch mapping it would be great.

The next steps would be to create an empty index with the mapping, using 1  
shard and no replica, \_source and \_all disabled. Then you could index one  
test doc over the ES API. After this, you can find out in the data folder  
where ES created the segments files. By exchanging them with a copy of your  
Lucene segment files, they should get picked up - or you get nasty errors  
because ES uses a custom Lucene index format and can not process standard  
Lucene segments.

Jörg

On Thu, Nov 20, 2014 at 2:26 PM, Gaurav gupta [gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)  
wrote:

> Thanks Jorg for the guidance and I have am trying the suggested approach  
> #1 and I have further question on it.
> 
> As you mentioned - _"- a custom written tool could traverse the segments  
> and extract field information and build a rudimentary mapping (without  
> analyzer, without info about \_all and \_source and all Elasticsearch  
> add-ons)"._
> 
> We already have a Lucene Index metadata (i.e. field names, type, analyzer  
> etc.) available as an xml, so I can create the mapping without traversing  
> the segments. Should I create segment file "segments.gen" using the mapping  
> file and using some dummy values and then put all the other old lucene  
> index files ( except "segments.gen" ) from existing lucene index files  
> (e.g. - segments\_2,\_0.cfe,\_0.cfs,\_0.si,\_1.cfe,\_1.cfs etc.)
> 
> _sample mapping xml file :-_  
>   
>   
> true  
> Standard  
> AddressLine1  
> AddressLine1  
> true  
> string  
>   
>   
> true  
> Standard  
> Building\_Name  
> Building\_Name  
> true  
> string  
>   
>   
> true  
> Keyword  
> GNAF\_PID  
> GNAF\_PID  
> true  
> string
> 
> ...
> 
> Thanks
> 
> On Thu, Nov 13, 2014 at 11:59 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> 
> > It is almost impossible to use just binary-only Lucene index for  
> > migration, because Elasticsearch needs additional info which is not  
> > available in Lucene. The only method is to reindex data over the  
> > Elasticsearch API.
> > 
> > There is a bumpy road but I don't know if one ever tried that:
> > 
> > - a custom written tool could traverse the segments and extract field  
> > information and build a rudimentary mapping (without analyzer, without info  
> > about \_all and \_source and all Elasticsearch add-ons)
> > 
> > - another tool could try to reconstruct docs (like the tool Luke) and  
> > write them to a file in bulk format. Not having the source of the docs  
> > means it must be possible to retrieve the original input from the Lucene  
> > index (which is almost never the case)
> > 
> > - the result could be re-indexed using the Elasticsearch API (assuming  
> > all analyzers and tokenizers are in place) but a lot of work would have to  
> > be done
> > 
> > The preferred way is to rewrite the code that uses the Lucene API to use  
> > the Elasticsearch API and re-run the indexing process.
> > 
> > Jörg
> > 
> > On Thu, Nov 13, 2014 at 7:11 PM, Gaurav gupta \<[gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)
> > 
> > > wrote:
> > 
> > > Hi All,
> > > 
> > > I have an embedded Search Engine in our product which is based on Lucene  
> > > 4.8.1 and now I would like to migrate it to latest Elasticsearch 1.4 for  
> > > better distributed support (sharding and replication, mainly). Could you  
> > > guide me how one should migrate the existing indexes created by Lucene to  
> > > ES.
> > > 
> > > I have referred to the mail thread - migrate lucene index into  
> > > elasticsearch  
> > > [https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO\_IcJ](https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO_IcJ).  
> > > And based on the discussion in it appears to me that it's not a easy job  
> > > or even not feasible. I am wondering if there is some plugin (river) or  
> > > tool or any work around available to migrate the existing indexes  
> > > created by Lucene to ES.
> > > 
> > > I googled that an ES plugin available for SOLR to ES migration :  
> > > [Trifork Blog - Keep updated on the technical solutions Trifork is working on!](http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/) .  
> > > Do we have someting similar for Lucene to ES migration.
> > > 
> > > Thanks  
> > > Gaurav
> > > 
> > > --  
> > > 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/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D\_2yuBw1PH1Z0odxz1kA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D_2yuBw1PH1Z0odxz1kA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D\_2yuBw1PH1Z0odxz1kA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D_2yuBw1PH1Z0odxz1kA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAKdsXoEDi8RP1m\_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDi8RP1m_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Gaurav\_gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_gupta](https://discuss.elastic.co/u/Gaurav_gupta)
#### Post date: [November 27, 2014, 2:39pm UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732/6 "2014-11-27T14:39:58Z")

</div>

Otis,  
I am not sure how many of our customers will accept to re-index the whole  
data as they are using it since long, although I am trying to convince my  
Senior Product Management to keep both Lucene and ES. Some old customers  
can think to migrate to ES if they need better real-time performance  
through distributed ES.

Note :- Currently, the major reason to migrate to ES from Lucene is to have  
better distributed support for faster real-time search. I have an embedded  
Search Engine in our product which is based on Lucene 4.8.1 and now I would  
like to migrate it to latest Elasticsearch 1.4 for better distributed  
support (sharding and replication, mainly).

Thanks  
Gaurav

On Sun, Nov 23, 2014 at 4:11 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
[joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:

> I can not tell if it will work, but if you could translate your xml  
> mapping into an Elasticsearch mapping it would be great.
> 
> The next steps would be to create an empty index with the mapping, using 1  
> shard and no replica, \_source and \_all disabled. Then you could index one  
> test doc over the ES API. After this, you can find out in the data folder  
> where ES created the segments files. By exchanging them with a copy of your  
> Lucene segment files, they should get picked up - or you get nasty errors  
> because ES uses a custom Lucene index format and can not process standard  
> Lucene segments.
> 
> Jörg
> 
> On Thu, Nov 20, 2014 at 2:26 PM, Gaurav gupta [gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)  
> wrote:
> 
> > Thanks Jorg for the guidance and I have am trying the suggested approach  
> > #1 and I have further question on it.
> > 
> > As you mentioned - _"- a custom written tool could traverse the segments  
> > and extract field information and build a rudimentary mapping (without  
> > analyzer, without info about \_all and \_source and all Elasticsearch  
> > add-ons)"._
> > 
> > We already have a Lucene Index metadata (i.e. field names, type, analyzer  
> > etc.) available as an xml, so I can create the mapping without traversing  
> > the segments. Should I create segment file "segments.gen" using the mapping  
> > file and using some dummy values and then put all the other old lucene  
> > index files ( except "segments.gen" ) from existing lucene index files  
> > (e.g. - segments\_2,\_0.cfe,\_0.cfs,\_0.si,\_1.cfe,\_1.cfs etc.)
> > 
> > _sample mapping xml file :-_  
> >   
> >   
> > true  
> > Standard  
> > AddressLine1  
> > AddressLine1  
> > true  
> > string  
> >   
> >   
> > true  
> > Standard  
> > Building\_Name  
> > Building\_Name  
> > true  
> > string  
> >   
> >   
> > true  
> > Keyword  
> > GNAF\_PID  
> > GNAF\_PID  
> > true  
> > string
> > 
> > ...
> > 
> > Thanks
> > 
> > On Thu, Nov 13, 2014 at 11:59 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> > [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> > 
> > > It is almost impossible to use just binary-only Lucene index for  
> > > migration, because Elasticsearch needs additional info which is not  
> > > available in Lucene. The only method is to reindex data over the  
> > > Elasticsearch API.
> > > 
> > > There is a bumpy road but I don't know if one ever tried that:
> > > 
> > > - a custom written tool could traverse the segments and extract field  
> > > information and build a rudimentary mapping (without analyzer, without info  
> > > about \_all and \_source and all Elasticsearch add-ons)
> > > 
> > > - another tool could try to reconstruct docs (like the tool Luke) and  
> > > write them to a file in bulk format. Not having the source of the docs  
> > > means it must be possible to retrieve the original input from the Lucene  
> > > index (which is almost never the case)
> > > 
> > > - the result could be re-indexed using the Elasticsearch API (assuming  
> > > all analyzers and tokenizers are in place) but a lot of work would have to  
> > > be done
> > > 
> > > The preferred way is to rewrite the code that uses the Lucene API to use  
> > > the Elasticsearch API and re-run the indexing process.
> > > 
> > > Jörg
> > > 
> > > On Thu, Nov 13, 2014 at 7:11 PM, Gaurav gupta \<  
> > > [gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)\> wrote:
> > > 
> > > > Hi All,
> > > > 
> > > > I have an embedded Search Engine in our product which is based on  
> > > > Lucene 4.8.1 and now I would like to migrate it to latest Elasticsearch 1.4  
> > > > for better distributed support (sharding and replication, mainly). Could  
> > > > you guide me how one should migrate the existing indexes created by Lucene  
> > > > to ES.
> > > > 
> > > > I have referred to the mail thread - migrate lucene index into  
> > > > elasticsearch  
> > > > [https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO\_IcJ](https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO_IcJ).  
> > > > And based on the discussion in it appears to me that it's not a easy job  
> > > > or even not feasible. I am wondering if there is some plugin (river) or  
> > > > tool or any work around available to migrate the existing indexes  
> > > > created by Lucene to ES.
> > > > 
> > > > I googled that an ES plugin available for SOLR to ES migration :  
> > > > [Trifork Blog - Keep updated on the technical solutions Trifork is working on!](http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/) .  
> > > > Do we have someting similar for Lucene to ES migration.
> > > > 
> > > > Thanks  
> > > > Gaurav
> > > > 
> > > > --  
> > > > 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/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D\_2yuBw1PH1Z0odxz1kA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D_2yuBw1PH1Z0odxz1kA%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D\_2yuBw1PH1Z0odxz1kA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D_2yuBw1PH1Z0odxz1kA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAKdsXoEDi8RP1m\_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDi8RP1m_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDi8RP1m\_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDi8RP1m_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CALZAj3%2BeyeFfgydMDdRLQCN%2Bq47Xwj-g-xN-y%2BGEkRSdvh795A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALZAj3%2BeyeFfgydMDdRLQCN%2Bq47Xwj-g-xN-y%2BGEkRSdvh795A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Gaurav\_gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_gupta](https://discuss.elastic.co/u/Gaurav_gupta)
#### Post date: [November 27, 2014, 2:50pm UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732/7 "2014-11-27T14:50:16Z")

</div>

Thanks Jorg but I didn't able to migrate the lucene indexes to ES even  
after trying what you have suggested. Maybe, I need to follow some more  
steps.  
I am not getting any error but the search is not showing any docs/records.  
While comparing the files, I found that "segments.gen" are identical but  
the segments\_N (segments\_2 in lucene and segments\_3 in ES) are slightly  
different

[image: Inline image 1]

Lucene Vs ES :-  
[image: Inline image 2]

Thanks  
Gaurav

On Thu, Nov 27, 2014 at 8:09 PM, Gaurav gupta [gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)  
wrote:

> Otis,  
> I am not sure how many of our customers will accept to re-index the whole  
> data as they are using it since long, although I am trying to convince my  
> Senior Product Management to keep both Lucene and ES. Some old customers  
> can think to migrate to ES if they need better real-time performance  
> through distributed ES.
> 
> Note :- Currently, the major reason to migrate to ES from Lucene is to  
> have better distributed support for faster real-time search. I have an  
> embedded Search Engine in our product which is based on Lucene 4.8.1 and  
> now I would like to migrate it to latest Elasticsearch 1.4 for better  
> distributed support (sharding and replication, mainly).
> 
> Thanks  
> Gaurav
> 
> On Sun, Nov 23, 2014 at 4:11 AM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> 
> > I can not tell if it will work, but if you could translate your xml  
> > mapping into an Elasticsearch mapping it would be great.
> > 
> > The next steps would be to create an empty index with the mapping, using  
> > 1 shard and no replica, \_source and \_all disabled. Then you could index one  
> > test doc over the ES API. After this, you can find out in the data folder  
> > where ES created the segments files. By exchanging them with a copy of your  
> > Lucene segment files, they should get picked up - or you get nasty errors  
> > because ES uses a custom Lucene index format and can not process standard  
> > Lucene segments.
> > 
> > Jörg
> > 
> > On Thu, Nov 20, 2014 at 2:26 PM, Gaurav gupta \<[gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)
> > 
> > > wrote:
> > 
> > > Thanks Jorg for the guidance and I have am trying the suggested approach  
> > > #1 and I have further question on it.
> > > 
> > > As you mentioned - _"- a custom written tool could traverse the  
> > > segments and extract field information and build a rudimentary mapping  
> > > (without analyzer, without info about \_all and \_source and all  
> > > Elasticsearch add-ons)"._
> > > 
> > > We already have a Lucene Index metadata (i.e. field names, type,  
> > > analyzer etc.) available as an xml, so I can create the mapping  
> > > without traversing the segments. Should I create segment file  
> > > "segments.gen" using the mapping file and using some dummy values and then  
> > > put all the other old lucene index files ( except "segments.gen" ) from  
> > > existing lucene index files (e.g. - segments\_2,\_0.cfe,\_0.cfs,\_0.si,\_1.cfe,\_1.cfs  
> > > etc.)
> > > 
> > > _sample mapping xml file :-_  
> > >   
> > >   
> > > true  
> > > Standard  
> > > AddressLine1  
> > > AddressLine1  
> > > true  
> > > string  
> > >   
> > >   
> > > true  
> > > Standard  
> > > Building\_Name  
> > > Building\_Name  
> > > true  
> > > string  
> > >   
> > >   
> > > true  
> > > Keyword  
> > > GNAF\_PID  
> > > GNAF\_PID  
> > > true  
> > > string
> > > 
> > > ...
> > > 
> > > Thanks
> > > 
> > > On Thu, Nov 13, 2014 at 11:59 PM, [joergprante@gmail.com](mailto:joergprante@gmail.com) \<  
> > > [joergprante@gmail.com](mailto:joergprante@gmail.com)\> wrote:
> > > 
> > > > It is almost impossible to use just binary-only Lucene index for  
> > > > migration, because Elasticsearch needs additional info which is not  
> > > > available in Lucene. The only method is to reindex data over the  
> > > > Elasticsearch API.
> > > > 
> > > > There is a bumpy road but I don't know if one ever tried that:
> > > > 
> > > > - a custom written tool could traverse the segments and extract field  
> > > > information and build a rudimentary mapping (without analyzer, without info  
> > > > about \_all and \_source and all Elasticsearch add-ons)
> > > > 
> > > > - another tool could try to reconstruct docs (like the tool Luke) and  
> > > > write them to a file in bulk format. Not having the source of the docs  
> > > > means it must be possible to retrieve the original input from the Lucene  
> > > > index (which is almost never the case)
> > > > 
> > > > - the result could be re-indexed using the Elasticsearch API (assuming  
> > > > all analyzers and tokenizers are in place) but a lot of work would have to  
> > > > be done
> > > > 
> > > > The preferred way is to rewrite the code that uses the Lucene API to  
> > > > use the Elasticsearch API and re-run the indexing process.
> > > > 
> > > > Jörg
> > > > 
> > > > On Thu, Nov 13, 2014 at 7:11 PM, Gaurav gupta \<  
> > > > [gupta.gaurav0125@gmail.com](mailto:gupta.gaurav0125@gmail.com)\> wrote:
> > > > 
> > > > > Hi All,
> > > > > 
> > > > > I have an embedded Search Engine in our product which is based on  
> > > > > Lucene 4.8.1 and now I would like to migrate it to latest Elasticsearch 1.4  
> > > > > for better distributed support (sharding and replication, mainly). Could  
> > > > > you guide me how one should migrate the existing indexes created by Lucene  
> > > > > to ES.
> > > > > 
> > > > > I have referred to the mail thread - migrate lucene index into  
> > > > > elasticsearch  
> > > > > [https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO\_IcJ](https://groups.google.com/forum/#!searchin/elasticsearch/migrating/elasticsearch/xCE7124eAL8/ZFluLXqO_IcJ).  
> > > > > And based on the discussion in it appears to me that it's not a easy job  
> > > > > or even not feasible. I am wondering if there is some plugin (river) or  
> > > > > tool or any work around available to migrate the existing indexes  
> > > > > created by Lucene to ES.
> > > > > 
> > > > > I googled that an ES plugin available for SOLR to ES migration :  
> > > > > [Trifork Blog - Keep updated on the technical solutions Trifork is working on!](http://blog.trifork.com/2013/01/29/migrating-apache-solr-to-elasticsearch/) .  
> > > > > Do we have someting similar for Lucene to ES migration.
> > > > > 
> > > > > Thanks  
> > > > > Gaurav
> > > > > 
> > > > > --  
> > > > > 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/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/71c0ed2e-94d7-4b70-b581-2515856fd938%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > 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/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW\_%2BShF69WAVzz\_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE8%3D-6Ft0%3DQBW_%2BShF69WAVzz_Ti%3DtJZMogp%3DQjxF5suA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D\_2yuBw1PH1Z0odxz1kA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D_2yuBw1PH1Z0odxz1kA%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D\_2yuBw1PH1Z0odxz1kA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALZAj3KDmA7NVZV2LcG2bcZpdOt%2Bz8%3D_2yuBw1PH1Z0odxz1kA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/CAKdsXoEDi8RP1m\_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDi8RP1m_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDi8RP1m\_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEDi8RP1m_8xKy0pkucMvCkVQgaKXNRq8SvTqH4J03Vdw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CALZAj3KGqzQ2v%2BjDWoZuWhOu7GFuE-nqt%3DQcfr074qvjQSNynA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALZAj3KGqzQ2v%2BjDWoZuWhOu7GFuE-nqt%3DQcfr074qvjQSNynA%40mail.gmail.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, 12:47am UTC](https://discuss.elastic.co/t/how-to-migrate-lucene-index-into-elasticsearch/20732/8 "2017-07-06T00:47:15Z")

</div>


