[ZODB-Dev] Updated BTree docs
Chris Withers
chrisw at nipltd.com
Fri May 2 18:04:56 EDT 2003
Casey Duncan wrote:
>
> byValue() returns (value, key) pairs in sorted order by value. ZCatalog uses
> this to sort "scored" results, such as from text indexes, which start as a
> mapping of rid->score.
How does this relate to this:
http://mail.zope.org/pipermail/zope-dev/2003-April/019456.html
> I have actually been camping on some optimized code for this. The current
> implementation is pretty lame. I came up with a new API, keysByValue(), which
> returns the keys in order by value, which is really all ZCatalog needs.
Does TextIndex use this to help with ranking in search results where more than
one index is used in the search?
If so, how could it be implemented for ZCTextIndex?
cheers,
Chris
More information about the ZODB-Dev
mailing list