Elasticsearch read model implementation for broadway/broadway using elastic/elasticsearch-php
$ composer require broadway/read-model-elasticsearch
Elasticsearch Version | broadway/read-model-elasticsearch version |
---|---|
>= 5.0 | ~0.2 |
>= 1.0, < 5.0 | ^0.1 |
- If you are using Elasticsearch 5.0+ , use broadway/read-model-elasticsearch 0.2.
- If you are using Elasticsearch 1.x or 2.x, use broadway/read-model-elasticsearch 0.1.
For testing you obviously need a running Elasticsearch instance, therefore
these tests are marked with @group functional
.
To start a local Elasticsearch you can use the provided docker-compose.yml:
docker-compose up -d
To run all the tests:
./vendor/bin/phpunit --exclude-group=none
MIT, see LICENSE.