Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

可以将WordPress的Posts,Pages, Categories和Tags自动同步至OpenSearch

License

Notifications You must be signed in to change notification settings

alibaba-archive/WordPress-OpenSearch

Repository files navigation

aliyun-opensearch

Wordpress 4.2 Wordpress 4.2 Wordpress 4.2 Wordpress 4.1 Wordpress 4.0 Wordpress 3.9 Wordpress 3.8 PHP >= 5.3

Introduction

Aliyun Open Search is a hosting service for structured data searching. Supporting data structures, sorting and data processing freedom to customize. Aliyun Open Search provides a simple, low cost, stable and efficient search solution for your sites or applications.

This plugin make an integration of WordPress and Open Search in an easy way.

Installation

Download the latest release of this plugin (the file ends with .zip). Or you just search 'aliyun-wp-opensearch' from 'https://wordpress.org/plugins/' and get this plugin.

Open your WordPress admin dashboard:

  1. Open the plugins page;
  2. Click the Add New button;
  3. Click the Upload Plugin button;
  4. Select the zip file you downloaded previous, and click the Install Now button;
  5. Activate plugin (Just click the link named activate after installed success)

Otherwise:

If you can not install this plugin by the method, please firstly download the plugin zip source, and unzip the plugin zip to the {you website root directory}/wp-content/plugins/{your unziped directory}.Lastly, you should active the plugin you just installed handly. Enjoy!

Configuration

  1. Open your WordPress admin dashboard.
  2. Find the menu Plugins - Installed Plugins, click it, then make sure the plugin named Open Search has been activated (Just click the Activate link).
  3. You can open the options page with Settings - AliYun Open Search Settings link on left menu.
  4. Find the button named Download Template, click it, you will download an file named config.json.
  5. Fill in the blank named Access Key ID with your Access Key ID in AccessKeys.
  6. Fill in the blank named Access Key Secret with your Access Key Secret in AccessKeys.
  7. Fill in the blank named Access Host with your Access Host in 管理控制台>开放搜索>应用管理.
  8. Fill in the blank named App Name with your App Name in 管理控制台>开放搜索>应用管理.

Note that, the default 管理控制台 does not show you 开放搜索. You should add it by yourself. If you do not know this, please contact with aliyun customer services.

  1. Open the Open Search dashboard with link named 阿里云面板, then click the link named 模板管理 to create a template for your wordpress search application.
    1. Click the button named 创建模板;
    2. Type in a 模板名称 such as wordpress_plugin , then click the button named 下一步;
    3. Click the button named 导入模板, then upload the file named config.json that you downloaded in previous steps.
    4. Click the 下一步 button;
    5. Click the 创建 button on the bottom of page.
    6. It means success after you saw the messages like创建模板成功.
    7. Click the link named 返回模板列表.
  2. Click the link named 应用列表 on left menu to create an application.
    1. Click the 创建应用 button;
    2. Make a name for the 应用名称 field, and remember it, it will be useful in next steps.
    3. Select a region, the same region is recommended when your WordPress deployed on AliYun ECS or ACE. It will make the API communication faster.
    4. Click the 下一步 button;
    5. Select the template that you created previous (such as wordpress_plugin).
    6. Click the 下一步 button on the bottom of page.
    7. Click the 稍后手动上传 button, then copy the value of 公网API域名 , 内网API域名 is recommended when your WordPress deployed with the same region of search application.
  3. Turn back to your wordpress dashboard and fill in the options form.
  4. When everything is ready, you should see a 'upload' button that is just for syncing with your posts to the Open Search server and click it.
  5. Have fun!

See also

http://www.aliyun.com/product/opensearch/

About

可以将WordPress的Posts,Pages, Categories和Tags自动同步至OpenSearch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published