# Luke with Lucene 3.5.0

**URL:** <https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103>\
**Category:** Elasticsearch\
**Created:** [December 8, 2011, 9:54pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103 "2011-12-08T21:54:07Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 8, 2011, 9:54pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/1 "2011-12-08T21:54:07Z")

</div>

Trying to use Luke 3.4.0 to debug some Lucene indexes, and having no luck. Getting this error.

"No valid directory at this location, try another location."

Using this command.

java -cp lukeall-3.4.0\_1.jar org.getopt.luke.Luke -index /tmp/2/media\_2011\_44/2/index/

Any advice?

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 8, 2011, 9:54pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/2 "2011-12-08T21:54:18Z")

</div>

Forgot to mention i'm using ElasticSearch 18.4

---

<div class="post-metadata">

**Author:** ![Goog\_Jobs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goog_jobs/32/2894_2.png) [@Goog\_Jobs](https://discuss.elastic.co/u/Goog_Jobs)\
**Post date:** [December 9, 2011, 9:40am UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/3 "2011-12-09T09:40:02Z")

</div>

yes , i tried and failed.

在 2011年12月9日星期五，phobos182 写道：

> Trying to use Luke 3.4.0 to debug some Lucene indexes, and having no luck.  
> Getting this error.
> 
> "No valid directory at this location, try another location."
> 
> Using this command.
> 
> java -cp lukeall-3.4.0\_1.jar org.getopt.luke.Luke -index  
> /tmp/2/media\_2011\_44/2/index/
> 
> Any advice?
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Luke-with-Lucene-3-5-0-tp3571556p3571556.html](http://elasticsearch-users.115913.n3.nabble.com/Luke-with-Lucene-3-5-0-tp3571556p3571556.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [December 9, 2011, 9:44am UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/4 "2011-12-09T09:44:25Z")

</div>

This should work for ES 0.18.4 (I tried yesterday 😉 - I tried via UI  
and open dir)

Be sure you are opening one index and the correct folder:

es-installation/data/yourcluster/nodes/0/indices/yourindex

Regards,  
Peter.

On 9 Dez., 10:40, goog cheng [googch...@gmail.com](mailto:googch...@gmail.com) wrote:

> yes , i tried and failed.
> 
> 在 2011年12月9日星期五，phobos182 写道：
> 
> > Trying to use Luke 3.4.0 to debug some Lucene indexes, and having no luck.  
> > Getting this error.
> 
> > "No valid directory at this location, try another location."
> 
> > Using this command.
> 
> > java -cp lukeall-3.4.0\_1.jar org.getopt.luke.Luke -index  
> > /tmp/2/media\_2011\_44/2/index/
> 
> > Any advice?
> 
> > --  
> > View this message in context:  
> > [http://elasticsearch-users.115913.n3.nabble.com/Luke-with-Lucene-3-5-](http://elasticsearch-users.115913.n3.nabble.com/Luke-with-Lucene-3-5-)...  
> > Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [December 9, 2011, 9:44am UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/5 "2011-12-09T09:44:49Z")

</div>

BTW: what has this todo with lucene 3.5 ?

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [December 9, 2011, 9:51am UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/6 "2011-12-09T09:51:49Z")

</div>

Hmmh, I originally just wanted to confirm it but it really does not  
work. The version where it worked was 0.18.3. Strange, I'll check

Peter.

On 9 Dez., 10:44, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:

> BTW: what has this todo with lucene 3.5 ?

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [December 9, 2011, 9:57am UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/7 "2011-12-09T09:57:26Z")

</div>

Uhm, stupid me - the folder is:

es-installation/data/yourcluster/nodes/0/indices/yourindex/0

not

es-installation/data/yourcluster/nodes/0/indices/yourindex/

Peter.

On 9 Dez., 10:51, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:

> Hmmh, I originally just wanted to confirm it but it really does not  
> work. The version where it worked was 0.18.3. Strange, I'll check
> 
> Peter.
> 
> On 9 Dez., 10:44, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:
> 
> > BTW: what has this todo with lucene 3.5 ?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 9, 2011, 10:15pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/8 "2011-12-09T22:15:14Z")

</div>

Note, Lucene 3.5.0 is part of 0.18.5, 0.18.4 works with lucene 3.4.0. Luke  
works well.

On Fri, Dec 9, 2011 at 11:57 AM, Karussell [tableyourtime@googlemail.com](mailto:tableyourtime@googlemail.com)wrote:

> Uhm, stupid me - the folder is:
> 
> es-installation/data/yourcluster/nodes/0/indices/yourindex/0
> 
> not
> 
> es-installation/data/yourcluster/nodes/0/indices/yourindex/
> 
> Peter.
> 
> On 9 Dez., 10:51, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:
> 
> > Hmmh, I originally just wanted to confirm it but it really does not  
> > work. The version where it worked was 0.18.3. Strange, I'll check
> > 
> > Peter.
> > 
> > On 9 Dez., 10:44, Karussell [tableyourt...@googlemail.com](mailto:tableyourt...@googlemail.com) wrote:
> > 
> > > BTW: what has this todo with lucene 3.5 ?

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 9, 2011, 11:27pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/9 "2011-12-09T23:27:31Z")

</div>

I just tried again, and it's not working for me. I am opening the correct folder. I am using data.path, and have my data in ES striped across multiple hard drives on a node. I'm wondering if that has anything to do with the problem.

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 9, 2011, 11:33pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/10 "2011-12-09T23:33:27Z")

</div>

Receiving this error.

java.io.FileNotFoundException: /data/0/elasticsearch/es\_cluster1/nodes/0/indices/media\_2011\_36/14/index/\_wue.fnm (No such file or directory)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 9, 2011, 11:45pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/11 "2011-12-09T23:45:09Z")

</div>

Yes, if you stripe the data over several directories, then luke will not  
work since the different index files are placed on different directories.

On Sat, Dec 10, 2011 at 1:33 AM, phobos182 [phobos182@gmail.com](mailto:phobos182@gmail.com) wrote:

> Receiving this error.
> 
> java.io.FileNotFoundException:
> 
> /data/0/elasticsearch/es\_cluster1/nodes/0/indices/media\_2011\_36/14/index/\_wue.fnm  
> (No such file or directory)
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Luke-with-Lucene-3-5-0-tp3571556p3574418.html](http://elasticsearch-users.115913.n3.nabble.com/Luke-with-Lucene-3-5-0-tp3571556p3574418.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 12, 2011, 4:03pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/12 "2011-12-12T16:03:31Z")

</div>

I have found a solution for this. Basically look for all instances of a index in the data.path, and copy them to a working directory. Then you have it all basically merged down to one copy.

Example.

find %{data.path} -type d -name '%{index}' | grep %{shard} | xargs -I{} cp -rp {} /tmp/2/

Working  
find . -type d -name '2011-11-14' | grep 14 | xargs -I{} cp -rp {} /tmp/2/

Then use luke on /tmp/2/14

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 12, 2011, 6:32pm UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/13 "2011-12-12T18:32:21Z")

</div>

Copying over several shards to teh same location will override each other  
and might create a corrupted index, just look at the single level shard  
index.

On Mon, Dec 12, 2011 at 6:03 PM, phobos182 [phobos182@gmail.com](mailto:phobos182@gmail.com) wrote:

> I have found a solution for this. Basically look for all instances of a  
> index  
> in the data.path, and copy them to a working directory. Then you have it  
> all  
> basically merged down to one copy.
> 
> Example.
> 
> find %{data.path} -type d -name '%{index}' | grep %{shard} | xargs -I{} cp  
> -rp {} /tmp/2/
> 
> Working  
> find . -type d -name '2011-11-14' | grep 14 | xargs -I{} cp -rp {} /tmp/2/
> 
> Then use luke on /tmp/2/14
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Luke-with-Lucene-3-5-0-tp3571556p3579833.html](http://elasticsearch-users.115913.n3.nabble.com/Luke-with-Lucene-3-5-0-tp3571556p3579833.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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, 3:45am UTC](https://discuss.elastic.co/t/luke-with-lucene-3-5-0/6103/14 "2017-07-06T03:45:38Z")

</div>


