Skip to main content

Extension to the paginate module to support Whoosh

Project description


This module is an extension to the [paginate]( module. It divides
up search results obtained with Whoosh.

from paginate_whoosh import WhooshPage

qp = QueryParser("text", myindex.schema)
q = qp.parse("a query")

with myindex.searcher() as searcher:
page = WhooshPage(, limit=None), # limit=None is required!
page=1, items_per_page=10)
# Now continue as you are used from the paginate module.
# Iterate over page to obtain the Whoosh result dictionary

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
paginate_whoosh-0.3.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page