This package is abandoned and no longer maintained. No replacement package was suggested.

Extend ElasticPress's search inputs to display search suggestions

Installs: 137

Dependents: 0

Suggesters: 0

Security: 0

Stars: 27

Watchers: 40

Forks: 7

Open Issues: 8



dev-master 2017-03-15 18:24 UTC

This package is not auto-updated.

Last update: 2019-02-20 19:41:35 UTC


Warning: This plugin exposes your Elasticsearch publically. If not properly secured and used in conjunction with the Protected Content function, private content can be leaked publically.

Extend ElasticPress's search inputs to display search suggestions


You need to add an endpoint to your nginx config, that forwards requests for /es-search to your Elasticsearch host. Here is an example server block with the required location block:

server {
    listen       80;

    server_name  example.com;

    # Elasticsearch endpoint
    location /es-search {

        # only allow things to hit the _autosuggest API
        # change the `_endpoint` to be whatever you'd like to restrict usage to
        location ~* (.*)_suggest$ {
            # only allow POST requests
            limit_except POST {
                deny all;
            # Perform our request
            rewrite ^/es-search(.*) $1 break;
            proxy_set_header Host $host;

            # Use the URL of the server here

        return 403;

    root         /srv/www/example.com;

    include      /etc/nginx/nginx-wp-common.conf;


If you identify any errors or have an idea for improving the plugin, please open an issue. We're excited to see what the community thinks of this project, and we would love your input!