How to correctly deploy Redisearch and Rejson (with *.so file for free download)

1 Dependence

project needs.
A recent project requires text search and technology selection: two components of Redis, Redisearch and ReJSON.
insert image description here

Redisearch and ReJSON are two components of Redis:

  • RediSearch provides query, secondary indexing and full-text search for Redis. To use RediSearch, first declare an index on the Redis data. This data is then queried using the RediSearch query language.
  • RedisJSON is a Redis module that implements the ECMA-404 JSON data interchange standard as a native data type. It supports storing, updating and retrieving JSON values ​​via Redis keys (documents).

I have never touched these two components of Redis before. I want to set up a test environment locally and get familiar with using them.
However, Redisearch and ReJSON are components independent of Redis and are not directly integrated into Redis. They need to be installed and used separately.
Install In the process, we took some detours, and after several tosses, the deployment was finally completed. The sharing is as follows to help users quickly build the environment and improve development efficiency.
In the early stage, I searched a lot on the Internet. For example, the most common way is to download the so file from the official website. Only rejson is available, and redisearch cannot read data, but can only write data. When reading data, it prompts: open source Redis cannot be used.
Please avoid the pit : this method is not available https://redis.com/redis-enterprise-software/download-ce

Guess you like

Origin blog.csdn.net/Xin_101/article/details/130302506