Title: RediSearch
Author: foadyousefi
Published: <strong>2018 年 10 月 1 日</strong>
Last modified: 2021 年 5 月 4 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/redisearch/assets/icon-256x256.jpg?rev=1967472)

# RediSearch

 作者：[foadyousefi](https://profiles.wordpress.org/foadyousefi/)

[下载](https://downloads.wordpress.org/plugin/redisearch.0.3.4.zip)

 * [详情](https://cn.wordpress.org/plugins/redisearch/#description)
 * [评价](https://cn.wordpress.org/plugins/redisearch/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/redisearch/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/redisearch/#developers)

 [支持](https://wordpress.org/support/plugin/redisearch/)

## 描述

Redisearch implements a search engine on top of Redis. It has lots of advanced features,
like exact phrase matching and numeric filtering for text queries, that are nearly
not possible or inefficient with mysql search queries.

### IMPORTANT

**The latest version of this plugin supports RediSearch version 2.0 (or higher) 
which runs on Redis 6.0 (or higher). If you have version prior to 2.0, please use
this plugins 0.2.7.**

Here you find a list of RediSearch features included in the plugin:

**Search**: Instantly find the content you’re looking for. The first time.

**Scoring fields differently**: Give different score to different fields. For example
higher score to product name and number than its description.

**Fuzzy Search**: Don’t worry about visitors misspelling.

**Autosuggest**: Adds a suggestion string to an auto-complete suggestion dictionary.

**Synonyms**: RediSearch supports synonyms, that is searching for synonyms words
defined by the synonym data structure.

### Existing features

 * WooCommerce: Index and search through most of existing products meta data.
 * Document: Index content of binary files such as pdf, word, excel and powerpoint.
 * Synonym: Adding synonym groups is simple. Just add each comma separated group
   on a new line in synonym settings and done.
 * Live search (aka autosuggest): Search as you type regardless of misspelling.

## 安装

 1. First, you will need to properly [install and configure](https://redis.io/topics/quickstart)
    Redis and [RediSearch](https://oss.redislabs.com/redisearch/Quick_Start/).
 2. Activate the plugin in WordPress.
 3. In the RediSearch settings page, input your Redis host and port and do the configuration.
 4. In RediSearch dashboard page, click on Index button.
 5. Let you visitors enjoy.

Optionaly, you can pass settings in your wp-config.php file like following. If you
are using [Redis Object Cache](https://wordpress.org/plugins/redis-cache/) plugin,
these settings may already exist.

define(‘WP_REDIS_HOST’, ‘127.0.0.1’);
 define(‘WP_REDIS_PORT’, ‘6379’); define(‘
WP_REDIS_PASSWORD’, ‘your-password’); define(‘WP_REDIS_INDEX_NAME’, ‘indexName’);
define(‘WP_REDIS_SCHEME’, ‘connectionScheme’);

## 常见问题

### What is wrong with WordPress native search?

Although mySql is a great database to storing relational data, It acts very poor
on search queries and you must forget about some features like fuzzy matching and
synonyms.

### How Redisearch is compared to ElasticSearch?

Yes, ElasticSearch is a great search engine and it has very good performance compared
to mySql. But RediSearch has almost 5 to 10 times better performance and also its
way easier to create index, sync your data and send query requests.

## 评价

![](https://secure.gravatar.com/avatar/b38d0c4d41c3014c4efb7673b3ca0db69922eb3a76e078d0e2caefcf55f4713c?
s=60&d=retro&r=g)

### 󠀁[Very promising plugin](https://wordpress.org/support/topic/very-promising-plugin-7/)󠁿

 [otomakan](https://profiles.wordpress.org/otomakan/) 2021 年 1 月 10 日

I strongly believe Redisearch will one day dominate Elasticsearch. Very promising
plugin. Kudos to developer @foadyousefi. Keep up the good work!

![](https://secure.gravatar.com/avatar/5675b4944de99484c68c56ac9e83a5c5f46d9502ba21fe785641cd2ea424daa7?
s=60&d=retro&r=g)

### 󠀁[Works](https://wordpress.org/support/topic/works-1520/)󠁿

 [seyntjim](https://profiles.wordpress.org/seyntjim/) 2019 年 1 月 22 日

Thanks for the big help!

![](https://secure.gravatar.com/avatar/00bc3c0b9571ad008e7b8402a9c9bbb109a59be1cc72aca840767a899a88440e?
s=60&d=retro&r=g)

### 󠀁[Cool plugin](https://wordpress.org/support/topic/cool-plugin-336/)󠁿

 [klever](https://profiles.wordpress.org/klever/) 2018 年 11 月 10 日 1 回复

it’s a great thing to get this plugin work with my site!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/redisearch/reviews/)

## 贡献者及开发者

「RediSearch」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ foadyousefi ](https://profiles.wordpress.org/foadyousefi/)

「RediSearch」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/redisearch/contributors)
为本插件所做的贡献。

[帮助将「RediSearch」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/redisearch)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/redisearch/)，查看[SVN仓库](https://plugins.svn.wordpress.org/redisearch/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/redisearch/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/redisearch/)。

## 更新日志

#### 0.3.4

 * FIXED: Fixed server connection issue caused by last release
 * Added: Option to select default language
 * Added: Added a filter to force RediSearch to replave WP_Query

#### 0.3.3

 * Added: Ability to connect via UNIX sockets

#### 0.3.2

 * FIXED: Fix issue while creating/updating/deleting posts

#### 0.3.1

 * FIXED: Fix an issue with live search

#### 0.3.0

 * Updated: Implemented RediSearch version 2.0

#### 0.2.7

 * FIXED: Fix some bugs.

#### 0.2.6

 * FIXED: Fix a bug preventing saving og feature settings.

#### 0.2.5

 * Added: Get index name option from wp-config
 * Added: Option for disabling stop words
 * Added: Adding a comma separated and user defined list of stop words
 * Fixed: Make search fields parent elements position to ‘relative’ so auto suggestion
   will appear in correct place

#### 0.2.4

 * Fix: Fix admin js and css files enqueue directory name case issue

#### 0.2.3

 * Added: Added password option.
 * Added: Ability to set redis server configurations in wp-config.php file.

#### 0.2.2

 * Added: Document feature for indexing binary file contents
 * Added: Filter hook ‘wp_redisearch_indexable_post_status’ to manipulate indexable
   post status
 * Added: Filter hook ‘wp_redisearch_before_admin_wp_query’ Applies to main query
   args. This is mainly for showing number of indexable posts
 * Added: Filter hook ‘wp_redisearch_after_admin_wp_query’ Applies after main query
   and recieves args and the $query object. This is mainly for showing number of
   indexable posts
 * Added: Filter hook ‘wp_redisearch_before_index_wp_query’ Applies to main query
   args. This hook is for manipulating arguments for indexing process
 * Added: Filter hook ‘wp_redisearch_after_index_wp_query’ Applies after main query
   and recieves args and the $query object. This hook is for manipulating $query
   object used for indexing posts

#### 0.2.1

 * Added: WooCommerce support added as Feature
 * Fixed: Return option values if empty string stores in database
 * Fixed: Fix incorrect link to settings page
 * Fixed: Fix harcoded index name in WP-CLI INFO command
 * Added: filter hook ‘wp_redisearch_indexable_temrs’ to manipulate indexable terms
   list
 * Added: filter hook ‘wp_redisearch_indexable_post_types’ to manipulate indexable
   post types

#### 0.2.0

 * Added: WP-CLI support
 * Added: Register and activating of Features
 * Added: filter hook ‘wp_redisearch_indexable_meta_keys’ to add extra meta keys
   to the index
 * Added: filter hook ‘wp_redisearch_indexable_meta_schema’ to manipulate type of
   post meta fields (default is text)
 * Added: action hook ‘wp_redisearch_after_post_indexed’ fires after posts indexed
   from the main index command
 * Added: action hook ‘wp_redisearch_after_post_published’ fires after a post have
   been published
 * Added: action hook ‘wp_redisearch_after_post_deleted’ fires after a post have
   been deleted
 * Added: action hook ‘wp_redisearch_after_index_created’ fires after main index
   created
 * Added: action hook ‘wp_redisearch_settings_indexing_fields’ fires after settings
   fields inside indexing options page
 * Fixed: Fix indexing posts on publish/update

#### 0.1.1

 * Use default value for settings if not set in settings

#### 0.1.0

 * Initial plugin

## 额外信息

 *  版本 **0.3.4**
 *  最后更新：**5 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.7.15**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/redisearch/) 和 [Russian](https://ru.wordpress.org/plugins/redisearch/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/redisearch)
 * 标签
 * [aggregation](https://cn.wordpress.org/plugins/tags/aggregation/)[fuzzy](https://cn.wordpress.org/plugins/tags/fuzzy/)
   [redis](https://cn.wordpress.org/plugins/tags/redis/)[search](https://cn.wordpress.org/plugins/tags/search/)
 *  [高级视图](https://cn.wordpress.org/plugins/redisearch/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/redisearch/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/redisearch/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/redisearch/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/redisearch/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/redisearch/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/redisearch/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/redisearch/reviews/)

## 贡献者

 *   [ foadyousefi ](https://profiles.wordpress.org/foadyousefi/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/redisearch/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/foadyousefi)