[ZODB-Dev] (Un)Index questions

Steve Alexander steve@cat-box.net
Fri, 12 Oct 2001 09:17:36 +0100


Andrew Dalke wrote:

> Hello again,
> 
>   Minor question.  I'm looking through SearchIndex/Index.py


Don't use the SearchIndex package. It is only there to be 
backwards-compatible.

Instead, use Products/PluginIndexes.


> and see in _apply_index
> 
>    w, r = weightedUnion(r, set)
> 
> The value of 'w' doesn't seem to do anything.
> 
> Then in UnIndex.py's _apply_index I see
> 
>   r = union(r, set)
> 
> So one case uses 'weightedUnion' and the other uses 'union'.
> Could someone tell me why there's a difference?  My intuition
> tells me there shouldn't be one.


The documentation for these is in BTrees/Interfaces.py



--
Steve Alexander
Software Engineer
Cat-Box limited