Skip to main content

!PyPi version !Python versions !CI/CD status !Code coverage status !Formatted with Black

wagtail-redisearch

A Django app to use RediSearch as a search backend in Wagtail.

Requirements

  • Django >= 3.2
  • Wagtail >= 2.15
  • RediSearch v2

Usage

Install wagtail-redisearch from PyPi.

In your settings.py add "wagtail_redisearch" to INSTALLED_APPS and configure your search backend as follows:

INSTALLED_APPS = [
  "wagtail_redisearch",
  ...
]

WAGTAILSEARCH_BACKENDS = {
    "default": {
        "BACKEND": "wagtail_redisearch",
        # optional parameters
        "INDEX": "custom-index-name", # default: "wagtail"
        "HOST": "127.0.0.1",
        "PORT": 6379,
        # you can add any option here to be used when initializing
        # a Redis client with redis-py.
        # e.g.
        "retry_on_error": True
    }
}

For more information about what options you can pass to the Redis client, look at the official documentation.

wagtail-redisearch implements the interfaces described in Backends Rolling your own, thus usage in Wagtail requires no special adjustment.

To configure search on your models, follow the official Wagtail documentation.

Contributing

To contribute to this project you'll need RediSearch installed and poetry.

# install dependencies
poetry install

# run tests
make test

# run tests with tox
make test-all

# to run a minimal Wagtail application to test things out
make run

Metadata

Release files for wagtail-redisearch 0.4.0

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

Source distribution (sdist)

Source distribution for wagtail-redisearch 0.4.0
File Size Uploaded Provenance Actions
wagtail-redisearch-0.4.0.tar.gz 9.7 kB Without provenance Details for wagtail-redisearch-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wagtail-redisearch 0.4.0
File Interpreter ABI Platform Actions
wagtail_redisearch-0.4.0-py3-none-any.whl Python 3 none any Details for wagtail_redisearch-0.4.0-py3-none-any.whl

Total release size: 18.8 kB

Release files / wagtail-redisearch-0.4.0.tar.gz

Download URL wagtail-redisearch-0.4.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
15539e7d72f3d51b5209683b6ac46d326d436ba993cc5a591823050cb1a430e0
BLAKE2b-256 checksum
How to use checksums
279ccf74ba1c77e27e114ab2fb899c9fbf36ddec6d47e8b0150e8c6d4ee071d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.12 Linux/5.13.0-1021-azure

Release files / wagtail_redisearch-0.4.0-py3-none-any.whl

Download URL wagtail_redisearch-0.4.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89618331d9780563c13559e9c2e40fc13e282d48e1200027e52d3e41906d7c92
BLAKE2b-256 checksum
How to use checksums
6f1ed652b6619314391d8894580e22daad3da653f986ffe098d2e725bed077f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.12 Linux/5.13.0-1021-azure

Security for wagtail-redisearch 0.4.0

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.

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