Giter Club home page Giter Club logo

Comments (14)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
I managed to get the luke 3.1-branch compiling against solr+lucene 3.2 with 
only small changes (iterator semantics must be used to read from SegmentInfos 
now) - resulting in the attached lukeall-3.2.0.jar file. Hope it is of use and 
can get some of you by until a proper official release is available.

Original comment by [email protected] on 23 Jun 2011 at 12:50

  • Added labels: ****
  • Removed labels: ****

Attachments:

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
Just happened to do the same... changes are to the ant build file and one tiny 
source change from get() to info() on line 159 of 
src/org/apache/lucene/index/IndexGate.java

Original comment by [email protected] on 23 Jun 2011 at 12:52

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
@[email protected]
Can you please tell me exactly what you've changed in the ant build file, 
because I've tried this now also:
changed in build.xml everything from 3.1.0 to 3.2.0 and in IndexGate.java get() 
to info(), then compiled it and tried to open the generated index from 
Solr-3.2.0, but again got the error message:
Incompatible format version: 3 expected 2 or lower

Original comment by [email protected] on 27 Jun 2011 at 8:15

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
did you try lukeall-3.2.0.jar that simon provided above?

anyway, the build file changes were only to the version numbers (3.1.0 to 
3.2.0). They appear quite often in the file, make sure to catch them all.  And 
maybe also make sure that the lucene 3.1 jar files are deleted.

hth

Original comment by [email protected] on 27 Jun 2011 at 8:35

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
Yes, downloaded the provided one from simon and it also worked for me, but I 
wanted to try it on my own - always interested in learning new stuff.

thx a lot

Original comment by [email protected] on 27 Jun 2011 at 9:05

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
I've got this exception (with the 3.2.0 jar file provided above) which means I 
can't view the document.

java.lang.ClassCastException: org.apache.lucene.document.NumericField cannot be 
cast to org.apache.lucene.document.Field
        at org.apache.lucene.document.Document.getFields(Document.java:204)
        at org.getopt.luke.Luke._showDocFields(Unknown Source)


Original comment by [email protected] on 28 Jun 2011 at 1:42

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
the 3.2 jar reads the index fine, but then when you browse the documents, you 
get:

java.lang.ClassCastException: org.apache.lucene.document.NumericField cannot be 
cast to org.apache.lucene.document.Field
        at org.apache.lucene.document.Document.getFields(Document.java:204)
        at org.getopt.luke.Luke._showDocFields(Unknown Source)
        at org.getopt.luke.Luke.access$1200(Unknown Source)
        at org.getopt.luke.Luke$11.execute(Unknown Source)
        at org.getopt.luke.Luke._showDoc(Unknown Source)
        at org.getopt.luke.Luke.showNextDoc(Unknown Source)

Original comment by [email protected] on 28 Jun 2011 at 12:33

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
This error was caused by an implicit cast in a deprecated api. I fixed this in 
the upcoming 3.3.0 release. Thanks!

Original comment by [email protected] on 6 Jul 2011 at 1:05

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
I'm still getting errors with r69. Luke.java has several casts to Field instead 
of Fieldable.


java.lang.ClassCastException: org.apache.lucene.document.NumericField cannot be 
cast to org.apache.lucene.document.Field
        at org.getopt.luke.Luke.showTField(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)

Original comment by [email protected] on 6 Jul 2011 at 3:07

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
Actually, there are a ton of left-over references to getFields() as well. Need 
to replace with getFieldables(); e.g. export doesn't work with numeric fields.


Original comment by [email protected] on 6 Jul 2011 at 3:14

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
Please try this patch and report if this works with your index.

Original comment by [email protected] on 6 Jul 2011 at 3:30

  • Added labels: ****
  • Removed labels: ****

Attachments:

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024

Original comment by [email protected] on 6 Jul 2011 at 3:30

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
I did not try your patch, but it looks like the same changes I've made. 

Original comment by [email protected] on 7 Jul 2011 at 12:18

  • Added labels: ****
  • Removed labels: ****

from luke.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
This is fixed in branch_3x, and the upcoming release 3.5.0. Thanks!

Original comment by [email protected] on 28 Dec 2011 at 3:08

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

from luke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.