ElasticSearch utility for VVV. Based on the Redis utility by Denis Žoljom, thanks!
This utility will set up ElasticSearch on your VVV.
In your config/config.yaml
file add under extensions
:
extensions:
elasticsearch:
- elasticsearch7
utility-sources:
elasticsearch:
repo: https://github.com/svandragt/elasticsearch-vvv-utility.git
branch: master
Once you add it, be sure you re-provision your VVV with vagrant reload --provision
.
- Install ElasticPress (activate it) (
wp plugin install elasticpress --activate
or via the browser) - In the admin, under
ElasticPress > Settings > Third-Party/Self-Hosted
addhttp://127.0.0.1:9200
:
- Create
public_html/wp-content/mu-plugins/elasticpress.php
with the contents of elasticpress.php to avoid conflicts for multisite networks and multiple sites using a single index. - To run the index run
wp elasticpress index --setup
.