# Cannot opening index with Luke

**URL:** <https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408>\
**Category:** Elasticsearch\
**Created:** [November 14, 2013, 3:04pm UTC](https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408 "2013-11-14T15:04:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kim\_Laplume](https://avatars.discourse-cdn.com/v4/letter/k/f17d59/32.png) [@Kim\_Laplume](https://discuss.elastic.co/u/Kim_Laplume)\
**Post date:** [November 14, 2013, 3:04pm UTC](https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408/1 "2013-11-14T15:04:56Z")

</div>

Hi,

I'm trying to inspect some ES indices with an updated Luke repo

> **[tarzanek/luke](https://github.com/tarzanek/luke)**
>
> SEE: https://issues.apache.org/jira/browse/LUCENE-2562 + https://github.com/DmitryKey/luke/ , I will slowly drop this repo, I'd love to see luke moved to lucene as module, until then - binaries...

I can compile and start Luke, with  
java -jar lukeall-4.5.1.jar  
but when I try to open an index I get the following error message:  
A SPI class of type org.apache.lucene.codecs.PostingsFormat with name  
'es090' does not exist. You need to add the corresponding JAR file  
supporting this SPI to your classpath.The current classpath supports the  
following names: [Lucene40, Lucene41]

Does anyone know what might be causes the error? I tried to add the  
lucene-codecs-4.4.0.jar and the elasticsearch-0.90.5.jar to the classpath  
and also compile them in the lukeall-jar, but the exception is still the  
same.

I would appreciate any help or comment.

Best Regards,  
Kim

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 14, 2013, 6:37pm UTC](https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408/2 "2013-11-14T18:37:32Z")

</div>

ES uses a posting format "es090" which has to be declared in the  
properties, you have to modify the Luke jar and provide an SPI class.

With the skywalker project, I also try to inspect ES Lucene indices, you  
can try it if you want. I do not inspect postings format yet...

> **[jprante/elasticsearch-skywalker](https://github.com/jprante/elasticsearch-skywalker)**
>
> elasticsearch-skywalker - Skywalker for Elasticsearch is like Luke for Lucene

Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Kim\_Laplume](https://avatars.discourse-cdn.com/v4/letter/k/f17d59/32.png) [@Kim\_Laplume](https://discuss.elastic.co/u/Kim_Laplume)\
**Post date:** [November 15, 2013, 7:55am UTC](https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408/3 "2013-11-15T07:55:51Z")

</div>

Thanks for the reply Jörg,

Skywalker certainly looks interesting, but I need to inspect an index that  
I have on the file system, that is not in a running ES cluster. I can try  
to start a node and somehow make it use the index in question, but I guess  
it will not work. Do you have some experience with indices that are copied  
over to a different cluster?

On Thursday, November 14, 2013 7:37:32 PM UTC+1, Jörg Prante wrote:

> ES uses a posting format "es090" which has to be declared in the  
> properties, you have to modify the Luke jar and provide an SPI class.
> 
> With the skywalker project, I also try to inspect ES Lucene indices, you  
> can try it if you want. I do not inspect postings format yet...
> 
> [GitHub - jprante/elasticsearch-skywalker: Skywalker for Elasticsearch is like Luke for Lucene](https://github.com/jprante/elasticsearch-skywalker)
> 
> Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 15, 2013, 8:05am UTC](https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408/4 "2013-11-15T08:05:15Z")

</div>

OK, I see. Maybe I should prepare a standalone skywalker jar for that  
purpose.

Yes, you should be able to move a shard over the file system, it should be  
picked up as a shard by the target cluster. Better is to move all the  
shards of an index to the target to keep the index structure intact  
(shards, replica).

The file system copy of a part of the cluster is not guaranteed to work for  
different cluster versions though, it may work or not. I suggest moving the  
whole "data" folder is a safer way, also to copy the cluster state.

Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Kim\_Laplume](https://avatars.discourse-cdn.com/v4/letter/k/f17d59/32.png) [@Kim\_Laplume](https://discuss.elastic.co/u/Kim_Laplume)\
**Post date:** [November 20, 2013, 2:10pm UTC](https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408/5 "2013-11-20T14:10:29Z")

</div>

For those who are interested, I managed to open an ES index with the luke  
version from the repo I mentioned in the opening post. I did the following:  
-included the ES jar in the lib folder of luke  
-added an entry for it to be compiled in the jar (under target compile in  
the ant script I added:  
  
  
  
-ran ant dist  
-uncompressed lukeall-4.5.1.jar  
-added the following entry to the file  
META-INF/services/org.apache.lucene.codecs.RostingsFormat:

org.elasticsearch.index.codec.postingsformat.Elasticsearch090PostingsFormat  
-compressed the folder again to lukeall-ES\_PATCHED-4.5.1.jar  
-ran java -jar lukeall-ES\_PATCHED-4.5.1.jar  
-profit!

On Friday, November 15, 2013 9:05:15 AM UTC+1, Jörg Prante wrote:

> OK, I see. Maybe I should prepare a standalone skywalker jar for that  
> purpose.
> 
> Yes, you should be able to move a shard over the file system, it should be  
> picked up as a shard by the target cluster. Better is to move all the  
> shards of an index to the target to keep the index structure intact  
> (shards, replica).
> 
> The file system copy of a part of the cluster is not guaranteed to work  
> for different cluster versions though, it may work or not. I suggest moving  
> the whole "data" folder is a safer way, also to copy the cluster state.
> 
> Jörg

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![bdelbosc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bdelbosc/32/32980_2.png) [@bdelbosc](https://discuss.elastic.co/u/bdelbosc)\
**Post date:** [March 7, 2014, 8:51am UTC](https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408/6 "2014-03-07T08:51:18Z")

</div>

Thanks Kim,

Just to update the procedure for elasticsearch 1.0.1 and latest luke-4.7.0

1. Get the luke from [github.com](http://github.com):tarzanek/luke.git  
git clone [git@github.com](mailto:git@github.com):tarzanek/luke.git

2. Edit the build.xml to add  
  
  

3. Get lucene 4.7.0 tgz archive and extract lucene-suggest-4.7.0.jar to the  
luke lib directory

4. Copy the elasticsearch-1.0.1.jar to the luke lib directory

5. Build with ant dist

6. Edit dist/lukeall-4.7.0.jar with vi and then edit the following file  
META-INF/services/org.apache.lucene.codecs.PostingsFormat

Then add the following lines and save :  
org.elasticsearch.index.codec.postingsformat.BloomFilterPostingsFormat  
org.elasticsearch.index.codec.postingsformat.Elasticsearch090PostingsFormat  
org.elasticsearch.search.suggest.completion.Completion090PostingsFormat

ben

--  
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/81909f57-3110-4eea-8490-56c169746cae%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/81909f57-3110-4eea-8490-56c169746cae%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:45am UTC](https://discuss.elastic.co/t/cannot-opening-index-with-luke/14408/7 "2017-07-06T01:45:04Z")

</div>


