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 configure your search backend as follows:

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.3.0.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

wagtail_redisearch-0.3.0-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

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