2017 © Pedro Peláez
 

bundle elasticsearch-extra-bundle

Extra tools for m6web/elasticsearch-bundle

image

gbprod/elasticsearch-extra-bundle

Extra tools for m6web/elasticsearch-bundle

  • Monday, September 12, 2016
  • by gbprod
  • Repository
  • 2 Watchers
  • 2 Stars
  • 222 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 6 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

ElasticsearchExtraBundle

stability-deprecated, (*1)

I will not maintain this bundle anymore, prefer elastica-extra-bundle., (*2)

Build Status Scrutinizer Code Quality Code Coverage, (*3)

Latest Stable Version Total Downloads Latest Unstable Version License, (*4)

Extra tools for managing indices and types. Built on top of m6web/elasticsearch-bundle., (*5)

Installation

With composer :, (*6)

composer require gbprod/elasticsearch-extra-bundle

Update your app/AppKernel.php file:, (*7)

public function registerBundles()
{
    $bundles = array(
        new M6Web\Bundle\ElasticsearchBundle\M6WebElasticsearchBundle(),
        new GBProd\ElasticsearchExtraBundle\ElasticsearchExtraBundle(),
    );
}

See M6WebElasticsearchBundle for configuring clients., (*8)

Index Management Operations

Configuration

Set indices setup, (*9)

elasticsearch_extra:
    indices:
        my_index:
            settings:
                number_of_shards: 3
                number_of_replicas: 2
            mappings:
                my_type:
                    _source:
                        enabled: true
                    properties:
                        first_name:
                            type: string
                            analyzer: standard
                        age:
                            type: integer
        my_index_2: ~

See Official documentation for options., (*10)

Create index

With default client:, (*11)

php app/console elasticsearch:index:create my_index

Or with specified client:, (*12)

php app/console elasticsearch:index:create my_index --client=my_client

Delete index

With default client:, (*13)

php app/console elasticsearch:index:delete my_index --force

Or with specified client:, (*14)

php app/console elasticsearch:index:delete my_index --force --client=my_client

Put index settings

With default client:, (*15)

php app/console elasticsearch:index:put_settings my_index

Or with specified client:, (*16)

php app/console elasticsearch:index:put_settings my_index --client=my_client

Put index mappings

With default client:, (*17)

php app/console elasticsearch:index:put_mappings my_index my_type

Or with specified client:, (*18)

php app/console elasticsearch:index:put_mappings my_index my_type --client=my_client

The Versions

12/09 2016

dev-master

9999999-dev

Extra tools for m6web/elasticsearch-bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar gbprod

25/03 2016

v0.1.0

0.1.0.0

Extra tools for m6web/elasticsearch-bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar gbprod

25/03 2016

v0.1-alpha.0

0.1.0.0-alpha0

Extra tools for m6web/elasticsearch-bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar gbprod

25/03 2016

v0.1-alpha.1

0.1.0.0-alpha1

Extra tools for m6web/elasticsearch-bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar gbprod