You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Charlie Schaubmair <ks...@gmx.at> on 2006/11/25 20:05:04 UTC

Newbie Problems

Hello,
 
first of all I'm totally new to lucene.
 
I've found this article:
http://coldfusion.sys-con.com/read/42053.htm?CFID=608986
<blocked::blocked::http://coldfusion.sys-con.com/read/42053.htm?CFID=608986&
CFTOKEN=126FE5E6-9ACC-1407-B3D2BE2FEB9396C4>
&CFTOKEN=126FE5E6-9ACC-1407-B3D2BE2FEB9396C4
 
AND this is very interesting for me, because I'm a ColdFusion-Programmer.
 
This example works very well and I've also done an example with DB-Results.
 
This example only works with lucene Version 1.4.3, because when I use lucene
Version 2, then I get the error message:
The selected method Keyword was not found
 
The error happens at this line:
document.add(field.Keyword("url", urlpath))
But this works with 1.4.3!!!
 
 
My other problem was, that I want to compile lucene 1.4.3 myself, because I
want to test the support prefix queries.
I've downloaded lucene-1.4.3-src.zip extraced it, installed ANT, installed
the newest JDK 1.5.0_09 and then I run ant.
The file is compiled without any error, but when I run my Index-Script I get
this error:
org/apache/lucene/analysis/StopAnalyzer (Unsupported major.minor version
49.0)
 
So please help me.
 
br
Charlie

Re: Newbie Problems

Posted by Chris Hostetter <ho...@fucit.org>.
: This example only works with lucene Version 1.4.3, because when I use lucene
: Version 2, then I get the error message:
: The selected method Keyword was not found

You can find info about this in the FAQ...

http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-d09fdfc8a6335eab4e3f3dc8ac41a40a3666318e

: I've downloaded lucene-1.4.3-src.zip extraced it, installed ANT, installed
: the newest JDK 1.5.0_09 and then I run ant.
: The file is compiled without any error, but when I run my Index-Script I get
: this error:
: org/apache/lucene/analysis/StopAnalyzer (Unsupported major.minor version
: 49.0)

this is a JVM error, usually indicating that you are attempting to run
code compiled with a "newer" Javac in an "older" JVM .. are you sure that
when you execute your code you are still using your 1.5 JDK ?

(google "Unsupported major.minor version: 49.0" flor lots of examples of
this)



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org