ronte-ltd / elastic-bundle
The bundle for the elastic search service
dev-master
2016-12-15 14:16 UTC
Requires
- php: >=7.1.0
- elasticsearch/elasticsearch: ~5.0
- ronte-ltd/common-bundle: dev-master
This package is not auto-updated.
Last update: 2024-10-26 19:48:34 UTC
README
Installation
Composer
composer require ronte-ltd/elastic-bundle
AppKernel.php
new RonteLtd\ElasticBundle\RonteLtdElasticBundle()
config.yml
ronte_ltd_elastic: entities: AppBundle\Entity\Entity: "%kernel.root_dir%/../src/AppBundle/Resources/schema/entity.yml" hosts: - 'http://127.0.0.1:9200'
Example of schema of entity that the entity.yml at above
index: 'items' type: 'item' settings: number_of_shards: 3 number_of_replicas: 2 mappings: _source: enabled: true properties: id: type: 'integer' name: type: 'string' analyzer: 'standard' nickname: type: 'string' analyzer: 'standard'
Road map
- Event Listener for events of doctrine
- Elastic Service
- Tests