Title: SearchWP API
Author: Josh Pollock
Published: <strong>2015 年 7 月 6 日</strong>
Last modified: 2016 年 1 月 7 日

---

搜索插件

![](https://ps.w.org/searchwp-api/assets/banner-772x250.png?rev=1193620)

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

![](https://s.w.org/plugins/geopattern-icon/searchwp-api_939d88.svg)

# SearchWP API

 作者：[Josh Pollock](https://profiles.wordpress.org/shelob9/)

[下载](https://downloads.wordpress.org/plugin/searchwp-api.zip)

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

 [支持](https://wordpress.org/support/plugin/searchwp-api/)

## 描述

Run advanced searches via the WordPress REST API and SearchWP.

Adds an endpoint to the WordPress REST API for searching via [SearchWP](https://searchwp.com/)—
the best tool for improving the usefulness and performance of WordPress search.

This plugin is a free plugin by [CalderaWP](https://CalderaWP.com). It is not an
official add-on for SearchWP.

 * Requires WordPress REST API (WP-API) 2.0-beta9 or later or WordPress 4.4 or later.
 * Requires SearchWP Version 2.6 or later

Technically will work without SearchWP, but queries will run through WP_Query.

### Example Queries

For a complete list of possible queries, see: [https://calderawp.com/doc/searchwp-api-queries/](https://calderawp.com/doc/searchwp-api-queries/)
*`
wp-json/swp_api/search?s=jedi&egnine=star-wars` * `wp-json/swp_api/search?&tax_query[
field]=slug&tax_query[taxonomy]=categories&tax_query[terms]=1` * `wp-json/swp_api/
search?meta_query[key]=jedi&meta_query[value]=luke&tax_query[compare]=IN`

### Does It Work With Version 1 of The REST API?

No, it does not.

### I Installed It And Nothing Happened

You are probably using version 1 of the REST API, or have not updated SearchWP past
2.6.

### How Shiny Is This Plugin?

Very shiny.

### Version 1.1.0 – January, 2015

 * Complex meta queries
 * Fallback to WP_Query if not possible to use SearchWP

### Version 1.0.0 – July 6, 2015

Initial release

## 安装

 * Install SearchWP, and the REST API plugin (you will need to get the \”develop\”
   branch from Github.)
 * Install this plugin.
 * Activate this plugin.
 * GET some queries.
 * Breath in.
 * Breath out.

## 评价

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

### 󠀁[Still works with latest version of WordPress and WooCommerce](https://wordpress.org/support/topic/still-works-with-latest-version-of-wordpress-and-woocommerce/)󠁿

 [mattiasf](https://profiles.wordpress.org/mattiasf/) 2020 年 2 月 26 日

Despite this plugin haven’t been maintained for several years, it is still working
with my version of WordPress and WooCommerce (which is the latest at the time of
writing). I was even able to customize the response format using the rest_prepare_post
filter.

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

### 󠀁[Sweet.](https://wordpress.org/support/topic/sweet-101/)󠁿

 [con](https://profiles.wordpress.org/conschneider/) 2017 年 11 月 1 日

Thank you very much for being so thoughtful and providing this.

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

### 󠀁[Great Product & Service](https://wordpress.org/support/topic/great-product-service-2/)󠁿

 [ajpark](https://profiles.wordpress.org/ajpark/) 2017 年 9 月 15 日

This Search is waaaaaay better than the Standard Woo search that I was using on 
my ecoommerce store, A-MainLand Hobbies. Highly recommended. Johnathan is great 
at Customer Service too.

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

### 󠀁[Exactly what you need!](https://wordpress.org/support/topic/exactly-what-you-need-8/)󠁿

 [Rory Michael Heaney](https://profiles.wordpress.org/rorymheaney/) 2016 年 9 月
3 日

This plugin is awesome. I have it running on 3 sites currently and love it. Makes
my search API request so much more reliable

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/searchwp-api/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Josh Pollock ](https://profiles.wordpress.org/shelob9/)

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

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.3.1 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/searchwp-api/)
 * 标签
 * [JSON](https://cn.wordpress.org/plugins/tags/json/)[rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
   [search](https://cn.wordpress.org/plugins/tags/search/)[searchwp](https://cn.wordpress.org/plugins/tags/searchwp/)
   [wp-api](https://cn.wordpress.org/plugins/tags/wp-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/searchwp-api/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Josh Pollock ](https://profiles.wordpress.org/shelob9/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://CalderaWP.com)