> The only difference is in the FieldInfos files (.fnm) which now uses BER
compressed
> integers.
Really? I'm confused then. I started poking around this afternoon and found
the following differences in the "segements" file between Lucene 1.4.3 and
Plucene 1.21.
When indexing via Lucene 1.4.3, the SegmentInfos.java Write() method writes
the following to the segements file:
1. Int FORMAT
2. Long version
3. Int counter
4. Int Num Segements
5. ... SegmentInfos ...
When reading the index via Plucene 1.21, the SegmentInfos.pm Read() method
reads:
1. Int counter
2. Int Num segments
3. ... SegmentInfos ...
Not taking into consideration the FORMAT and/or version information written
by Lucene. From this point on, everything goes south. So saying that they
are compatible (unless you have more than 128 fields indexed) doesn't seem
right to me.
Am I missing something here?
-----Original Message-----
From: plucene-bounces-LhsUWLkCAQ8AvxtiuMwx3w@xxxxxxxxxxxxxxxx
[mailto:plucene-bounces-LhsUWLkCAQ8AvxtiuMwx3w@xxxxxxxxxxxxxxxx] On Behalf
Of Tony Bowden
Sent: Monday, June 27, 2005 3:43 AM
To: plucene-LhsUWLkCAQ8AvxtiuMwx3w@xxxxxxxxxxxxxxxx
Subject: Re: [Plucene] Lucene/Plucene Index Compatibility
On Sun, Jun 26, 2005 at 12:36:24PM -0400, Joe Becknell wrote:
> I have an existing Lucene index that I'm trying to open/search via
Plucene.
> I haven't been able to get it working and after checking the archives
> on this list, it seems they're not compatible!? :-( Does anyone know
> what the differences between the formats are or does anyone know of a
> conversion utility/script?
>
The only difference is in the FieldInfos files (.fnm) which now uses BER
compressed integers.
I don't have a conversion tool as I've never come across a Lucene index
which had a large enough number of fields for this to be a problem.
If I understand it correctly you would need to have at least 128 fields
being indexed for a document. Is this really the case with your index?
Does it work if you use Plucene 1.20 instead of 1.21?
What errors are you getting from Plucene?
Tony
_______________________________________________
Plucene mailing list
Plucene-LhsUWLkCAQ8AvxtiuMwx3w@xxxxxxxxxxxxxxxx
http://www.kasei.com/mailman/listinfo/plucene
|