nickchomey / wpml-elasticpress

WPML ElasticPress adds support for languages in ElasticPress.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WPML ElasticPress integration

OTGS CI

The main goal

When you activate ElasticPress plugin without our plugin, you will see posts from all languages on the frontend. This glue plugin has been created in order to support language information in search results. It filters posts according to the current language.

To achieve this goal, we append an additional post_lang field to Elasticsearch document. It lets us filter them later.

Additional parameter in ElasticPress CLI command

We also added the extra --post-lang argument in CLI indexing command. You can use it in this way:

wp wpml_elasticpress index --post-type=post --post-lang=de which will index only German posts.

Changelog

1.0.0

  • Filter the search by language.
  • Add post-lang parameter to CLI indexing command.

About

WPML ElasticPress adds support for languages in ElasticPress.

License:GNU General Public License v3.0


Languages

Language:PHP 74.2%Language:Shell 23.9%Language:Makefile 1.9%