Download the PHP package gbprod/elasticsearch-dataprovider-bundle without Composer
On this page you can find all versions of the php package gbprod/elasticsearch-dataprovider-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gbprod/elasticsearch-dataprovider-bundle
More information about gbprod/elasticsearch-dataprovider-bundle
Files in gbprod/elasticsearch-dataprovider-bundle
Package elasticsearch-dataprovider-bundle
Short Description Bundle that can easily provide data in elasticsearch indices with Symfony
License MIT
Informations about the package elasticsearch-dataprovider-bundle
Elasticsearch dataprovider bundle
I will not maintain this bundle anymore, prefer elastica-provider-bundle.
Bundle that can easily provide data in elasticsearch indices with Symfony using M6Web elasticsearch bundle.
Installation
Download bundle using composer :
Declare in your app/AppKernel.php
file:
Usage
Configure Elasticsearch clients
See M6WebElasticsearchBundle for configuring clients.
Create a Data Provider
Register your provider
Provide
You also can provide a full index:
Or run all providers:
You can set a specific client to use (if not default):
Example using doctrine
Changing bulk size
Bulk size is important when providing data to elasticsearch. Take care of your nodes setting a good bulk size. Default bulk size is 1000, you can change setting the bulk entry of the tag.
Or directly inside a provider.
About count method
This is not mandatory to implements count
method but it allows you to have a pretty progressbar while provider is running.
All versions of elasticsearch-dataprovider-bundle with dependencies
symfony/framework-bundle Version ^2.3|^3.0
symfony/console Version ^2.3|^3.0
symfony/event-dispatcher Version ^2.3|^3.0
symfony/expression-language Version ^2.4|^3.0