Download the PHP package gbprod/elastica-provider-bundle without Composer
On this page you can find all versions of the php package gbprod/elastica-provider-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gbprod/elastica-provider-bundle
More information about gbprod/elastica-provider-bundle
Files in gbprod/elastica-provider-bundle
Package elastica-provider-bundle
Short Description Bundle that can easely provide data in ElasticSearch using Elastica
License MIT
Informations about the package elastica-provider-bundle
Elasticsearch provider bundle
Bundle that can easely provide data in Elasticsearch using Elastica.
Installation
Download bundle using composer :
Declare in your app/AppKernel.php
file:
Usage
Configure Elastica client
You can create Elastica client using a bundle like:
- FOSElasticaBundle
Service name will look likefos_elastica.client.my_client
- My lightweight bundle ElasticaBundle
Service name will look likeelastica.default_client
- DIY
Create a 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 elastica-provider-bundle with dependencies
symfony/framework-bundle Version ^2.7|^3.0|^4.0
symfony/console Version ^2.7|^3.0|^4.0
symfony/event-dispatcher Version ^2.7|^3.0|^4.0
symfony/expression-language Version ^2.7|^3.0|^4.0
symfony/yaml Version ^2.7|^3.0|^4.0