Contact Contact Show All Awards & Recognition
Contact
Show All Awards & Recognition

valantic/pimcore-elastica-bridge

not-reviewed

No Category

No author set

Version

0.6.5

Last updated

Contact

-

No  Reviewer

valantic/pimcore-elastica-bridge

No Category

Project Summary

Elastica bridge for Pimcore


Readme

Elastica Bridge for Pimcore

Latest Version on Packagist Software License PHP Checks

NO support is provided!

This package is developed by valantic CEC Schweiz and is under active development.

Setup

  1. composer require valantic/pimcore-elastica-bridge
  2. Use the Pimcore UI
    1. Open the Tools -> Bundles screen in Pimcore
    2. Enable the bundle
  3. Use the Pimcore CLI
    1. console pimcore:bundle:enable ValanticElasticaBridgeBundle
  4. If all else fails
    1. Edit var/config/extensions.php
    2. Add "Valantic\\ElasticaBridgeBundle\\ValanticElasticaBridgeBundle" => TRUE,
  5. Configure the connection to your Elasticsearch cluster as seen in example/app/config/config.yml
  6. Don't forget to register your newly created services (implementing IndexInterface etc.) in your services.yml
    AppBundle\Elasticsearch\:
    resource: '../../Elasticsearch'

Usage

Please see the example/ folder for a complete example.

Simplified, these are the steps to get the bundle up and running:

  1. Configure the Elasticsearch client in app/config/config.yml
  2. Define the mapping between an Elasticsearch document and a Pimcore element by implementing \Valantic\ElasticaBridgeBundle\DocumentType\DocumentInterface
  3. Define the Elasticsearch index by implementing \Valantic\ElasticaBridgeBundle\Index\IndexInterface
  4. Define how a document is persisted in an index by implementing \Valantic\ElasticaBridgeBundle\DocumentType\Index\IndexDocumentInterface

Indexing

Bulk

$ console valantic:elastica-bridge:index --help
Description:
  Ensures all the indices are present and populated.

Usage:
  valantic:elastica-bridge:index [options] [--] [<index>...]

Arguments:
  index                          Optional: indices to process. Defaults to all if empty

Options:
  -d, --delete                   Delete i.e. re-create existing indices
  -p, --populate                 Populate indices
  -c, --check                    Perform post-populate checks
  -h, --help                     Display this help message

Specific

The bridge automatically listens to Pimcore events and updates documents as needed.

This can be globally disabled by calling \Valantic\ElasticaBridgeBundle\EventListener\Pimcore\AbstractListener::disableListener(); or by implementing \Valantic\ElasticaBridgeBundle\Index\IndexInterface::subscribedDocuments.

Status

$ console valantic:elastica-bridge:status --help
Description:
  Displays the status of the configured Elasticsearch indices

Review status

not-reviewed

?>

No author set

Version

0.6.5

Last updated

Contact

-

No  Reviewer