Allow arbitrary adapters to be registered to weight search results differently
This is a simple product that patches the ZCatalog such that you can register sort adapters for results.
The main usecase for this is to tailor search results to specific business rules, eg. ‘Recent document are more important than old’ or ‘Documents from the CEO are more important than from the tea boy’.
To use it you need to write a utility that provides a sorted() method that can be passed a LazyMap of brains and re-score and re-sort them based upon your criteria.
See adapters.py for some examples.
- Fixed bug in utility being called twice
- Initial release
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size collective.searchweightings-1.1.tar.gz (12.0 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for collective.searchweightings-1.1.tar.gz