Comments (14)
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.
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.
@[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.
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.
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.
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.
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.
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.
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.
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.
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.
Original comment by [email protected]
on 6 Jul 2011 at 3:30
- Changed state: Accepted
- Added labels: ****
- Removed labels: ****
from luke.
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.
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)
- Reconstruct and save certain fields in the index
- luke for current Lucene/Solr 4 trunk
- What steps are necessary to update Luke to work with the newest/certain Solr-Version from trunk?
- Support File/New
- Upgrade branch-3x to use Lucene 3.6.0
- Luke is showing long terms very strange HOT 2
- support for zipped indexes HOT 1
- When selecting "open in Read-Only mode" for a path (in the GUI), it appears that its not being opened read only HOT 3
- Search pane with missing section
- add maven support
- Anti-alias fonts in Luke GUI
- Update support for Lucene 4.1.0 HOT 12
- lucene4.1 version HOT 2
- 4.0alpha doesn't read Umbraco/Lucene/Examine indexes, but 1.0.1 does HOT 1
- Please make Available Fields table adjustable.
- Reconstruct and save a particular field
- Lucene42 HOT 5
- Open index does not pass in correct path
- Luke makes background index changes instead of just reading it
- Where will be jars available for LUKE after code.google.com is going to get closed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luke.