[wordpress插件] WP Search with Elasticsearch用Elasticsearch进行WP搜索

wordpress 插件 文章 2020-04-13 08:20 1099 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

A WordPress plugin designed to make working with Elasticsearch and WordPress quick and painless.

一个WordPress插件,旨在使Elasticsearch和WordPress的工作变得快捷而轻松。

By Digital Bureau.

通过数字局。

Description

说明

WP Search with Elasticsearch is a plugin designed to make adding a powerful search engine to your WordPress site simple.

Elasticsearch的WP Search是一个插件,旨在使向您的WordPress网站添加强大的搜索引擎变得简单。

Simply install the plugin, point it to your Elasticsearch instance, and with a few clicks you will have all of your content set up to work with Elasticsearch!

只需安装插件,将其指向您的Elasticsearch实例,然后单击几下,您就可以设置所有内容以与Elasticsearch一起使用!

Features:

功能:

    • Easy to set up

      易于设置

    • Index posts from a settings page

      设置页面上的索引帖子

    • Robust search algorithms powered by Elasticsearch

      由Elasticsearch支持的强大搜索算法

    • Functions “like Google” right out of the box

      功能像Google一样开箱即用

    • Quick indexing and lightning-fast performance that supports up to 50,000 posts

      快速索引和闪电般的性能,最多支持50,000个帖子

    • Replaces front end search with a simple widget and a fast, mobile-friendly search page

      通过一个简单的小部件和一个快速且适合移动设备的搜索页面替换前端搜索

    • No need to be a developer to work with ES!

      无需成为开发人员即可使用ES!

    Installation

    安装

    Requirements

    要求

      • Elasticsearch 6+
      • Elasticsearch 6 +

      • PHP 5.6
      • PHP 5.6

      • At least 512MB allocated for WordPress
      • 为WordPress分配至少512MB

      Plugin Install

      插件安装

      Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.

      解压缩该zip文件,然后将其内容拖放到WordPress安装的wp-content / plugins /目录中,然后激活“来自插件的插件”页面。

      Install Elasticsearch and allow all requests

      安装Elasticsearch并允许所有请求

        • To set up an Elasticsearch instance from scratch, refer to the official Elasticsearch installation docs here for support and allowing access to your ES instance.

          要从头开始设置Elasticsearch实例,请参阅此处的官方Elasticsearch安装文档以获取支持并允许访问您的ES实例。

        • A much easier and well supported installation is available from Amazon Web Services.

          Amazon Web Services提供了更加容易且受良好支持的安装。

          You can follow the 3-minute deployment instructions here.

          您可以在此处按照3分钟的部署说明进行操作。

            • You will need to make sure that your ES instance is set up to allow requests from your WordPress installation.
            • 您需要确保将ES实例设置为允许来自WordPress安装的请求。

            -For AWS: Make note of the IP of your WordPress host, and add it to the allowed IP\’s list in the \’modify access policy\’ section.

            -对于AWS:记下WordPress主机的IP,并将其添加到“修改访问策略”部分的允许IP列表中。

          Set up WP Search with Elasticsearch

          使用Elasticsearch设置WP搜索

            • Once the plugin has been activated, Settings->WP Search with Elasticsearch in the WordPress Admin.

              激活插件后,在WordPress管理员中通过Settings-> WP用Elasticsearch搜索

            • Add your information to the \’Available before Index Creation\’ section:

              将您的信息添加到“索引创建之前可用”部分:

                • Specify the index name, url, port, and what content you would like to add to the search engine.
                • 指定索引名称,URL,端口以及要添加到搜索引擎的内容。

              • Click \’Save All Changes\’.

                点击\“保存所有更改”。

                The page will reload.

                页面将重新加载。

              • If you have used the correct info for your ES instance and have allowed your WordPress IP to access it, you should see the cluster information at the top of the screen

                如果您为ES实例使用了正确的信息并允许WordPress IP访问它,则应该在屏幕顶部看到群集信息

                  • If you are getting error messages, make sure that your Elasticsearch instance is set up to allow requests, and that you have the correct url and port defined.
                  • 如果收到错误消息,请确保将Elasticsearch实例设置为允许请求,并且已定义正确的url和端口。

                  • NOTE: If using AWS, setting access rules will take time to populate correctly, sometimes as long as 15-20 minutes.
                  • 注意:如果使用AWS,则设置访问规则将花费一些时间才能正确填充,有时长达15至20分钟。

                • Once your cluster is connected, scroll to the bottom of the screen and click on the \’Click to Create Index\’ button.

                  连接集群后,滚动至屏幕底部,然后单击“单击创建索引”按钮。

                  You will be notified the index has been created, then the page will reload.

                  将通知您索引已创建,然后页面将重新加载。

                • Once your index has been created, click on the \'Click to Populate\' button at the bottom of the screen, you will be notified how many posts have been added to the index, then the page will reload.

                  创建索引后,点击屏幕底部的“点击填充”按钮,系统会通知您已向索引添加了多少帖子,然后页面将重新加载。

                  p>

                  >

                Configuration defaults

                默认配置

                  • The plugin is automatically set up to function \”like Google\”, where queries in quotes will be treated as a single query, operators like \'and\' will combine search terms into one search, etc.

                    该插件会自动设置为“类似于Google \”功能,其中引号中的查询将被视为单个查询,诸如“和”之类的运算符会将搜索词组合为一个搜索,等等。

                    >

                    >

                  • Any new posts and pages will automatically be added to the search index, any changes to a post will be updated in the index.

                    任何新的帖子和页面都会自动添加到搜索索引中,对帖子的任何更改都会在索引中更新。

                  Add a widget to your site

                  将小部件添加到您的网站

                    • Under Appearance->Widgets in wp-admin, you can add the \”WP Search with Elasticsearch\” search bar to your site.

                    • 在wp-admin中的“外观”->“窗口小部件”下,您可以将\“ WP用Elasticsearch搜索\”搜索栏添加到您的站点。

                      This overrides the stock search in WordPress.

                    • 这会覆盖WordPress中的股票搜索。

                     

                     

下载地址
https://downloads.wordpress.org/plugin/db-search-with-elasticsearch.1.0.5.zip
-EOF-

AI助手支持GPT4.0