List Info

Thread: Using Luke?




Using Luke?
user name
2007-01-27 18:54:13
Hello all,

Has anyone been using Luke to examine index generated by
PyLucene?
I'd like to use Luke to debug my search but I always get a
"invalid path, or not a Lucene index" error from
Luke when I point
it to the index directory.

-- 
Best regards,
Jack

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

Re: Using Luke?
user name
2007-01-27 18:58:36
On Jan 27, 2007, at 7:54 PM, Jack L wrote:

> Hello all,
>
> Has anyone been using Luke to examine index generated
by PyLucene?
> I'd like to use Luke to debug my search but I always
get a
> "invalid path, or not a Lucene index" error
from Luke when I point
> it to the index directory.
>

Make sure the Lucene jar Luke is using is the same as the
one  
PyLucene is using. On my system I have to call luke by:

java -classpath luke.jar:lucene-core-2.0.0-478273.jar  
org.getopt.luke.Luke


_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

Re: Using Luke?
user name
2007-01-27 19:28:14
On Sat, 27 Jan 2007, Jack L wrote:

> Has anyone been using Luke to examine index generated
by PyLucene?
> I'd like to use Luke to debug my search but I always
get a
> "invalid path, or not a Lucene index" error
from Luke when I point
> it to the index directory.

A Lucene index created with PyLucene should be the same byte
for byte as an 
index created with Java Lucene. If that is not the case,
please send in code 
to reproduce the error, it's a bug.

I've never used Luke myself so I can't tell what the error
is about. Maybe the 
version of Luke is not compatible with the version of
Lucene/PyLucene you're 
using ? There have been index format changes in Lucene 2.0.

Andi..
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

Re Using Luke?
user name
2007-01-29 12:58:28
Thanks Andi and Brian for the reply. I'm still getting the
error.
Here's what I did:

I downloaded lucene 2.0 from a mirrow link
http://download.nextag.com/apache/lucene/java
/lucene-core-2.0.0.jar

And here's how I run luke:
java -classpath luke.jar;lucene-core-2.0.0.jar
org.getopt.luke.Luke

I run Luke and navigate to the directory generated by, which
is:
PyLucene-2.0.0-8samplesLuceneInActionindex

Luke still complains that it's not a lucene index.

-- 
Best regards,
Jack

Saturday, January 27, 2007, 5:28:14 PM, you wrote:


> On Sat, 27 Jan 2007, Jack L wrote:

>> Has anyone been using Luke to examine index
generated by PyLucene?
>> I'd like to use Luke to debug my search but I
always get a
>> "invalid path, or not a Lucene index"
error from Luke when I point
>> it to the index directory.

> A Lucene index created with PyLucene should be the same
byte for byte as an
> index created with Java Lucene. If that is not the
case, please send in code
> to reproduce the error, it's a bug.

> I've never used Luke myself so I can't tell what the
error is about. Maybe the
> version of Luke is not compatible with the version of
Lucene/PyLucene you're
> using ? There have been index format changes in Lucene
2.0.

> Andi..

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

Re Using Luke?
user name
2007-01-29 13:04:44
On Mon, 29 Jan 2007, Jack L wrote:

> Thanks Andi and Brian for the reply. I'm still getting
the error.
> Here's what I did:
>
> I downloaded lucene 2.0 from a mirrow link
> http://download.nextag.com/apache/lucene/java
/lucene-core-2.0.0.jar
>
> And here's how I run luke:
> java -classpath luke.jar;lucene-core-2.0.0.jar
org.getopt.luke.Luke
>
> I run Luke and navigate to the directory generated by,
which is:
> PyLucene-2.0.0-8samplesLuceneInActionindex
>
> Luke still complains that it's not a lucene index.

I'm not sure that the formats between Lucene 2.0.0 and
PyLucene 2.0.0-8 are 
exactly the same. PyLucene 2.0.0-8 is built from a recent
Java Lucene trunk 
snapshot. To be sure, download the PyLucene 2.0.0-8 source
tarball and use the 
Lucene JAR file to be found in there with Luke.

Andi..

>
> -- 
> Best regards,
> Jack
>
> Saturday, January 27, 2007, 5:28:14 PM, you wrote:
>
>
>> On Sat, 27 Jan 2007, Jack L wrote:
>
>>> Has anyone been using Luke to examine index
generated by PyLucene?
>>> I'd like to use Luke to debug my search but I
always get a
>>> "invalid path, or not a Lucene index"
error from Luke when I point
>>> it to the index directory.
>
>> A Lucene index created with PyLucene should be the
same byte for byte as an
>> index created with Java Lucene. If that is not the
case, please send in code
>> to reproduce the error, it's a bug.
>
>> I've never used Luke myself so I can't tell what
the error is about. Maybe the
>> version of Luke is not compatible with the version
of Lucene/PyLucene you're
>> using ? There have been index format changes in
Lucene 2.0.
>
>> Andi..
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
protection around
> http://mail.yahoo.com
> _______________________________________________
> pylucene-dev mailing list
> pylucene-devosafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev
>
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

Re Using Luke?
user name
2007-01-29 21:37:47
Thanks. This fixed it. I didn't know that the file format
in Lucene changes all the time!

-- 
Best regards,
Jack

> I'm not sure that the formats between Lucene 2.0.0 and
PyLucene 2.0.0-8 are
> exactly the same. PyLucene 2.0.0-8 is built from a
recent Java Lucene trunk
> snapshot. To be sure, download the PyLucene 2.0.0-8
source tarball and use the
> Lucene JAR file to be found in there with Luke.

> Andi..


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
_______________________________________________
pylucene-dev mailing list
pylucene-devosafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )