Skip to main content

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

Project description

!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

Project details


Download files

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

Source Distribution

wagtail-redisearch-0.4.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

wagtail_redisearch-0.4.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file wagtail-redisearch-0.4.0.tar.gz.

File metadata

  • Download URL: wagtail-redisearch-0.4.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Linux/5.13.0-1021-azure

File hashes

Hashes for wagtail-redisearch-0.4.0.tar.gz
Algorithm Hash digest
SHA256 15539e7d72f3d51b5209683b6ac46d326d436ba993cc5a591823050cb1a430e0
MD5 51e9fd4279730d1bbb7b344bf2d46d4f
BLAKE2b-256 279ccf74ba1c77e27e114ab2fb899c9fbf36ddec6d47e8b0150e8c6d4ee071d8

See more details on using hashes here.

File details

Details for the file wagtail_redisearch-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: wagtail_redisearch-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Linux/5.13.0-1021-azure

File hashes

Hashes for wagtail_redisearch-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89618331d9780563c13559e9c2e40fc13e282d48e1200027e52d3e41906d7c92
MD5 3c81cd4e023f94a0f063493291963767
BLAKE2b-256 6f1ed652b6619314391d8894580e22daad3da653f986ffe098d2e725bed077f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page