yatretyak / luke

Automatically exported from code.google.com/p/luke
0 stars 0 forks source link

Update support for Lucene 4.1.0 #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Luke cannot display Lucene 4.1.0 indexes when i add the new lucene-jar to the 
classpath. I'm getting following exception:

java.lang.VerifyError: class org.apache.lucene.misc.SweetSpotSimilarity 
overrides final method 
computeNorm.(Lorg/apache/lucene/index/FieldInvertState;Lorg/apache/lucene/index/
Norm;)V

There have also been some changes to the APIs

Original issue reported on code.google.com by kristian...@gmail.com on 23 Jan 2013 at 8:45

GoogleCodeExporter commented 8 years ago
Attached is a patch. I'm able to build and run Luke with Lucene 4.1.0 and open 
Lucene 4.1.0 directory.

Original comment by mingfai...@gmail.com on 31 Jan 2013 at 7:29

Attachments:

GoogleCodeExporter commented 8 years ago
I also meet the problem , but the luke-4.1.0.diff  how to use? thank you!

Original comment by song0...@mail.ustc.edu.cn on 3 Feb 2013 at 4:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Check the discuss group, you may try: https://github.com/sonarme/luke

Original comment by mingfai...@gmail.com on 3 Feb 2013 at 4:17

GoogleCodeExporter commented 8 years ago
Can you give me a jar, throuth java -jar commond to run thr jar! my computer 
have not ant! thank you, i am chinese , english is not well! hansong@360buy.com

Original comment by song0...@mail.ustc.edu.cn on 4 Feb 2013 at 2:46

GoogleCodeExporter commented 8 years ago
I've build lukeall-4.0.0-BETA.jar using github.com/sonarme/luke code and 
lucene-4.1.0, but it crashes with following exception:
java.lang.NullPointerException
  at java.io.Reader.<init>(Unknown Source)
  at java.io.InputStreamReader.<init>(Unknown Source)
  at thinlet.Thinlet.parse(Thinlet.java:5961)
  at thinlet.Thinlet.parse(Thinlet.java:5843)
  at thinlet.Thinlet.parse(Thinlet.java:5819)
  at thinlet.Thinlet.parse(Thinlet.java:5791)
  at org.getopt.luke.Luke.addComponent(Luke.java:498)
  at org.getopt.luke.Luke.<init>(Luke.java:176)
  at org.getopt.luke.Luke.startLuke(Luke.java:5211)
  at org.getopt.luke.Luke.main(Luke.java:5260)

Am I missing something... obvious? :-(

Original comment by okukart...@gmail.com on 12 Feb 2013 at 7:57

GoogleCodeExporter commented 8 years ago
ok. try my repository: https://github.com/mingfai/luke

Original comment by mingfai...@gmail.com on 12 Feb 2013 at 11:13

GoogleCodeExporter commented 8 years ago
>try my repository: https://github.com/mingfai/luke
Yep - this one worked!
Thanks a lot! :-)

Original comment by okukart...@gmail.com on 13 Feb 2013 at 3:21

GoogleCodeExporter commented 8 years ago
I tried your repository and built the Luke I found therein, and when I try to 
run it, I'm getting "Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/solr/schema/FieldType".

I will say right up front, I have a lot more experience with C++ than with 
Java, so this is probably something simple, but I badly need to be able to 
query my (newly upgraded) Lucene index, so if anyone can help me get Luke 
functional again, I'd really appreciate it.

Also, is there a simple way to make Luke stop lower-casing everything 
automatically?  In their infinite wisdom, the programmers who came before me 
chose to set one of the fields in all capitals, which means I can never query 
on that field in Luke.

Thanks for any and all help!

Original comment by liamjohn...@gmail.com on 20 Feb 2013 at 1:27

GoogleCodeExporter commented 8 years ago
you'd better post your questions to the mail list. 

for NoClassDefFoundError, I guess you executed another jar. you may use the 
following commands to build and run Luke
  mvn package 
  java -jar dist/lukeall-4.1.0.jar 

for lower-case, if you use StandardAnalyzer, the index are in lowercase. You 
may find a solution in Google. Lucene query are always case sensitive so its 
not a problem with Luke. 

Original comment by mingfai...@gmail.com on 20 Feb 2013 at 3:46

GoogleCodeExporter commented 8 years ago
i had also the error "Exception in thread "main" 
java.lang.NoClassDefFoundError: org/apache/solr/schema/FieldType"." but I fixed 
it just by putting the 2 solr jars files into lib/solr (instead of having them 
in lib/) and then rebuild.

Original comment by laurent....@sfr.fr on 21 Feb 2013 at 10:52

GoogleCodeExporter commented 8 years ago
oh, sorry, i forgot Luke is built with Ant but not Maven. :-P

There is a script at 
https://github.com/mingfai/luke/blob/master/download-dependencies.sh
that does the download from Maven central

Original comment by mingfai...@gmail.com on 21 Feb 2013 at 6:05

GoogleCodeExporter commented 8 years ago
Here is a code that supports Lucene versions 4.x, 5.x:
https://github.com/DmitryKey/luke

Original comment by lukaszra...@gmail.com on 6 Aug 2015 at 9:33