Thank you very much for taking the time to do this. This version is
able to read the index files, but there is at least one issue:
The home screen reports "ERROR: can't count terms per field" and this
exception is thrown:
java.util.NoSuchElementException
at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1098)
at java.util.TreeMap$KeyIterator.next(TreeMap.java:1154)
at
java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
at org.getopt.luke.IndexInfo.countTerms(IndexInfo.java:64)
at org.getopt.luke.IndexInfo.getNumTerms(IndexInfo.java:109)
at org.getopt.luke.Luke$3.run(Luke.java:1165)
On 11/05/2012 05:08 PM, Shawn Heisey wrote:
On 11/5/2012 2:52 PM, Shawn Heisey wrote:
No idea whether I did it right, or even whether it works. All my
indexes are either 3.5 or 4.1-SNAPSHOT, so I can't actually test it.
You can get to the resulting jar and my patch against the
luke-4.0.0-ALPHA source:
https://dl.dropbox.com/u/97770508/luke-4.0.0-unofficial.patch
https://dl.dropbox.com/u/97770508/lukeall-4.0.0-unofficial.jar
If you have an immediate need for 4.0.0 support in Luke, please try
it out and let me know whether it works. If it doesn't work, or when
the official luke 4.0.0 is released, I will remove those files from
my dropbox.
I just realized that the version I uploaded there was compiled with
java 1.7.0_09. I don't know if this is actually a problem, but just
in case, I re-did the compile on a machine with 1.6.0_29. The
filename referenced above now points to this version and I have
included a file that indicates its java7 origins:
https://dl.dropbox.com/u/97770508/lukeall-4.0.0-unofficial-java7.jar
Thanks,
Shawn