Download the PHP package mdiyakov/doctrine-solr-bundle without Composer
On this page you can find all versions of the php package mdiyakov/doctrine-solr-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package doctrine-solr-bundle
DoctrineSolrBundle
DoctrineSolrBundle is a Symfony bundle designed to mitigate Solr usage in symfony projects
Features
- Auto-indexing doctrine entities in Solr
- Supports wildcard, fuzzy & negative searches by specific entity fields
- Supports Range searches by specific entity fields
- Supports Boosting a Term by specific entity fields
- Supports Solr SuggestComponent
- Supports filters by entity fields or custom symfony service before indexing
- Auto-resolving search results in Doctrine entities
- Supports implementation of separate finder class for particular entity class
- Flexible query building interface
- Cross-search over different entity classes
Installation
Step 1 Download DoctrineSolrBundle using composer
Composer will install the bundle to your project's vendor/mdiyakov/doctrine-solr-bundle directory.
Step 2
Enable the bundle in the kernel :
You have to install "NelmioSolariumBundle" also because it's used by MdiyakovDoctrineSolrBundle
Step 3 : Quick start with DoctrineSolrBundle
Prerequisites
- Solr schema.yml created and solr core is initialized
- Solr schema.yml unique field is "uid"
- Solr schema.yml consists "document_id", "document_title" and "discriminator" fields
- AppBundle\Entity\MyEntity is created and has "id" and "title" fields
DoctrineSolrBundle is using "NelmioSolariumBundle" for solarium integration. So you need to set a configuration to use it. Here is minimum config:
The default solr endpoint will be used in this case (http://localhost:8983/solr)
Init bundle configuration in config.yml. Quick example:
As a result "id" and "title" fields of "AppBundle\Entity\MyEntity" will be synced with Solr each time "AppBundle\Entity\MyEntity" is created, updated or removed.
If you use doctrine/orm < 2.5 then you have to add an annotation to "AppBundle\Entity\MyEntity" class:
To search "AppBundle\Entity\MyEntity" use the following code:
Next steps
- Getting started with DoctrineSolrBundle
- Regular, fuzzy, wildcard, range and negative search
- Custom finder class
- Filters
- Schema search across multiple entities classes
- Suggestions
- Query building
- Console command to index entities
- Console command to delete entities
- EntityManager. How to flush an entity safe
- Roadmap
All versions of doctrine-solr-bundle with dependencies
symfony/framework-bundle Version ^2.3 || ^3.0
doctrine/doctrine-bundle Version ^1.5.0
doctrine/orm Version ~2.4.0 || ~2.5.0
symfony/property-access Version >=2.3.0
solarium/solarium Version ^3.0
nelmio/solarium-bundle Version ~2.1