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)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/searchwp-api/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/searchwp-api/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/searchwp-api/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.4.34**
 *  語言
 * [English (US)](https://wordpress.org/plugins/searchwp-api/)
 * 標籤:
 * [JSON](https://tw.wordpress.org/plugins/tags/json/)[rest-api](https://tw.wordpress.org/plugins/tags/rest-api/)
   [search](https://tw.wordpress.org/plugins/tags/search/)[searchwp](https://tw.wordpress.org/plugins/tags/searchwp/)
   [wp-api](https://tw.wordpress.org/plugins/tags/wp-api/)
 *  [進階檢視](https://tw.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)