A simple CRUD operation on a Symfony Entity with Elasticsearch index and retrive
composer install
during composer symfony installation, set up mysql username homestead
and password: secret
php vendor/bin/homestead make
or
vendor\bin\homestead.bat make
edit "./Homestead.yaml" with personal paths, database name and options
vagrant up
vagrant ssh
cd ~/symfony-crud-elasticsearch
php bin/console doctrine:schema:update --force
sudo apt-get install default-jre
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list
sudo apt-get update && sudo apt-get install elasticsearch
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
cd ~/symfony-crud-elasticsearch
php bin/console fos:elastica:populate
192.168.10.10 symfony-crud-elasticsearch.app