2017 © Pedro Peláez
 

library elastic-bundle

The bundle for the elastic search service

image

ronte-ltd/elastic-bundle

The bundle for the elastic search service

  • Thursday, December 15, 2016
  • by CawaKharkov
  • Repository
  • 2 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Symfony 3 Elastic Bundle

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

  • [x] Event Listener for events of doctrine
  • [x] Elastic Service
  • [x] Tests

The Versions

15/12 2016

dev-master

9999999-dev

The bundle for the elastic search service

  Sources   Download

MIT

The Requires

 

by Alexey Astafev