Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Allow arbitrary adapters to be registered to weight search results differently

Project Description

Introduction

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.

Changelog

1.1

  • Fixed bug in utility being called twice

1.0

  • Initial release
Release History

Release History

This version
History Node

1.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.searchweightings-1.1.tar.gz (12.0 kB) Copy SHA256 Checksum SHA256 Source Aug 13, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting