Skip to main content

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

Metadata

Release files for collective.searchweightings 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.searchweightings 1.1
File Size Uploaded Provenance Actions
collective.searchweightings-1.1.tar.gz 12.0 kB Without provenance Details for collective.searchweightings-1.1.tar.gz

Release files / collective.searchweightings-1.1.tar.gz

Download URL collective.searchweightings-1.1.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5a3d574d5be212db14c92fd13eefeb348b0e7bb24d7465c02dbeb5c2064bbb2a
BLAKE2b-256 checksum
How to use checksums
329ca8ea02cadbd66d9189d0168d8a20e099bd9d20d6ec886d0e2092855244cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for collective.searchweightings 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page