Installing RediSearch to enable super fast E-commerce Search

Installing RediSearch to enable super fast E-commerce Search

Experimental

RediSearch, a quick search engine that can be customized through E Commerce Settings, is an optional feature of the ERPNext E-Commerce module.

RediSearch will be utilized to enhance the search capabilities of the e-commerce website once it has been deployed and configured. This includes tools like autocomplete, fuzzy-word searching, results ranking, and custom field indexing.

Pre-requisites

1.Frappe Framework + ERPNext Setup

2.Redis 6+

Installation Instructions A redisearch.so binary file will be produced in the RediSearch/build directory upon successful completion of the aforementioned instructions.

Restart your Frappe Server after placing this binary in the /etc directory:

Now, access the config directory's redis cache.conf file (inside the bench directory). Before the save "" line, insert the following line. After that, restart the bench server.

During startup, this will load the redisearch module. Run the following command in the redis-cli to see if the module was loaded successfully:

and one of the modules should be search.

Run the following command in the redis-cli to load the module on an active Redis instance:

The redisearch.so module can be put anywhere in the file system, but we choose to put it in the /etc directory. We chose this location because, in the future, the loadmodule line in the configuration file will be automatically filled in and will presumptively point to the /etc directory as the location of the binary.

You may find more thorough instructions here.