Skip to main content

Installing RediSearch to enable fast E-commerce Search

\u003e Experimental \u003e \u003e

The E-Commerce module of ABNERP optionally uses RediSearch to enable search functionality which is configurable via E Commerce Settings.

Once installed and configured, RediSearch will be used to charge the search functionality of the E-Commerce website. This includes features like fuzzy-word searching, autocomplete, results ranking and customizable field indexing.

Pre-requisites

  1. Frappe Framework + ABNERP Setup
  2. Redis 6+

Installation Instructions

$ git clone --recursive https://github.com/RediSearch/RediSearch.git
$ cd RediSearch
$ sudo make setup # Remove `sudo` on macOS
$ make build


\u003e Please Note: the latest version of RediSearch requires Redis 7.1+, while the stable redis as on 01-Aug-2023 available in snap repos is 7.0. Therefore, Redis need to be compiled from source for Redissearch to be compatible with Redis. \u003e \u003e Also note ABNERP requires Redis 6+, therefore using Redis 7.1+ might break thinks. Use Redis 7.1+ with caution. \u003e \u003e

On successful completion of the above instructions, a redisearch.so binary file will be generated in the RediSearch/build directory.

Move this binary to the /etc directory and restart your Frappe Server:

sudo mv build/redisearch.so /etc/


Now, open the redis_cache.conf file located in the config directory (inside the bench directory). Add the following line before the `save \