Download the PHP package imaximius/elasticsearch-bundle without Composer
On this page you can find all versions of the php package imaximius/elasticsearch-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imaximius/elasticsearch-bundle
More information about imaximius/elasticsearch-bundle
Files in imaximius/elasticsearch-bundle
Package elasticsearch-bundle
Short Description Elasticsearch bundle for Symfony.
License MIT
Homepage http://ongr.io
Informations about the package elasticsearch-bundle
ONGR Elasticsearch Bundle
Elasticsearch Bundle was created in order to serve the need for professional Elasticsearch integration with enterprise level Symfony applications. This bundle is:
- Uses the official elasticsearch-php client.
- Ensures full integration with Symfony framework and Symfony Flex.
Technical goodies:
- Provides a DSL query builder which represent all ElasticSearch endpoints in the objective way.
- Provides interactive Document object generator via CLI command (
ongr:es:document:generate
) - Creates a familiar Doctrine-like way to work with documents(entities) document-object mapping using annotations.
- Several query results iterators are provided for your convenience to work with results.
- Console CLI commands for the index management and data import/export/reindex.
- Profiler that integrates in the Symfony debug bar and shows all executed queries.
- Designed in an extensible way for all your custom needs.
- Supports Symfony FLEX.
If you need any help, stack overflow is the preferred way to get answers. is the preferred and recommended way to ask questions about ONGR bundles and libraries.
If you like this library, help me to develop it by buying a cup of coffee
Version matrix
Elasticsearch version | ElasticsearchBundle version |
---|---|
>= 7.0 | ~7.x |
>= 6.0, < 7.0 | ~6.x |
>= 5.0, < 5.0 | ~5.x, ~6.x (indexes with 1 type) |
>= 2.0, < 5.0 | >=1.0, < 5.0 |
>= 1.0, < 2.0 | >= 0.10, < 1.0 |
<= 0.90.x | < 0.10 |
Documentation
The online documentation of the bundle can be found in http://docs.ongr.io.
Docs source is stored within the repo under Resources/doc/
, so if you see a typo or some inaccuracy, please submit a PR or at least an issue to fix it!
For contribution to the documentation you can find it in the contribute topic.
FAQ
- Index mapping
- Configuration
- Console commands
- How to do simple CRUD actions
- Quick find functions
- How to execute search in the index
- Parsing the results
Setup the bundle
Step 1: Install Elasticsearch bundle
Elasticsearch bundle is installed using Composer.
Instructions for installing and deploying Elasticsearch can be found in Elasticsearch installation page.
Enable ElasticSearch bundle in your AppKernel:
(OPTIONAL) Step 2: Add configuration
Add minimal configuration for Elasticsearch bundle.
This is the very basic example only, for more information, please take a look at the configuration chapter.
Step 3: Define your Elasticsearch types as Document
objects
This bundle uses objects to represent Elasticsearch documents. Lets create the Product
class for the products
index.
This is the basic example only, for more information about a mapping, please take a look at the the mapping chapter.
Step 4: Create index and mappings
Elasticsearch bundle provides several CLI
commands. One of them is for creating an index, run the command in your terminal:
Now the products
index should be created with fields from your document.
More info about the rest of the commands can be found in the commands chapter.
Step 5: Enjoy with the Elasticsearch
Full documentation for the Elasticsearch bundle is available here. I hope you will create amazing things with it :sunglasses: .
Please note that the updating process of the documentation of the bundle to 6.0 is still under way. Read the configuration and crud sections that are already updated and will allow you to have the basic functions of the bundle. We will update the rest of the documentation as soon as possible
Troubleshooting
License
This bundle is licensed under the MIT license. Please, see the complete license
in the bundle LICENSE
file.
All versions of elasticsearch-bundle with dependencies
symfony/framework-bundle Version ^4.4|^5.0
symfony/dependency-injection Version ^4.4|^5.0
symfony/console Version ^4.4|^5.0
symfony/stopwatch Version ^4.4|^5.0
symfony/finder Version ^4.4|^5.0
symfony/serializer Version ^4.4|^5.0
symfony/cache Version ^4.4|^5.0
symfony/property-access Version ^4.4|^5.0
doctrine/annotations Version ^1.6
doctrine/cache Version ^1.7
doctrine/inflector Version ^1.3
doctrine/collections Version ^1.5
monolog/monolog Version ^1.24
elasticsearch/elasticsearch Version ^7.0
ongr/elasticsearch-dsl Version ^7.0