Hi guys:
Perhaps I should have posted this to this list in the first place.
I am trying to work on a patch to for each term, expose minDoc and
maxDoc. This value can be retrieve while constructing the TermInfo.
Knowing these two values can be very helpful in caching DocIdSet for a
given Term. This would help to determine what type of underlying
implementation to use, e.g. BitSet, HashSet, or ArraySet, etc.
The problem I am having is stated below, I don't know how to add the
minDoc and maxDoc values to the index while keeping backward compatibility.
Help greatly appreciated.
Thanks
-John
---------- Forwarded message ----------
From: John Wang <[EMAIL PROTECTED]>
Date: Tue, Jun 24, 2008 at 11:59 AM
Subject: changing index format
To: [EMAIL PROTECTED]
Hi:
I am trying to add couple more values to the TermInfo file and want to
keep the index backward compatible. But I see values such as docFreq etc.
are stored as a VInt, so I couldn't do things like using the signed bit to
determine whether to read/write the extra values.
Any suggestions?
(I tried to implement a read/write impl for signed VInt, but it didn't work
out too well :( )
Thanks
-John