Nice, I will write the ids into a byte array with a DataOutputStream and
then marshal that array into a String with a UTF8 encoding. This way there
is no need for parsing or splitting, and the encoding is space efficient.
This marshaled String will be cached with a FieldCache. Thank you for your
suggestions! I will tell you how well this worked as soon as I've
implemented it.
Cheers,
Carlos

On 5/24/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:

: Mh, some of my fields are in fact multivaluated. But anyway, I could
store
: them as a single string and split after retrieval.
: Will FieldCache work for the first search with some query or just for
the
: successive ones, for which the fields are already cached?

The first time you access the cache, it will populate it for every
document. ... it makes the first hit slow, but you can always force the
first hit arbitrarily prior to using the IndexReader for "real" queries



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to