> Seriously, how would you do it?

Ah, for LUCENE-2312 we don't need to update existing values, we only
need to make additions, ie, it's not the general use case.  I got the
impression that DocValues should be used instead of CSF?  Does CSF
replace the FieldCache usage entirely?

> Better would be a stacked approach, where the orig full array remains
> and we write sparse deltas (pairs of docID + new value)

What is the lookup cost using this method?

On Mon, Jan 17, 2011 at 3:24 AM, Michael McCandless
<[email protected]> wrote:
> On Sun, Jan 16, 2011 at 11:35 AM, Jason Rutherglen
> <[email protected]> wrote:
>>> But: they don't yet support updating the values (the goal is to allow
>>> this, eventually).  This is just the first step.
>>
>> No?  Hmm... I thought that was a main part of the functionality?
>
> Patches welcome ;)
>
> Seriously, how would you do it?  IE, I don't like how norms handle it
> today -- on changing a single value we must write the full array (for
> all docs).  Same problem w/ del docs, though since its 1 bit per doc
> the cost is far less.
>
> Better would be a stacked approach, where the orig full array remains
> and we write sparse deltas (pairs of docID + new value), and at init
> we load the base and apply all the diffs (in order).  Merging would
> periodically coalesce them down again...
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to