DBIx::Class::ElasticSync - Helps keep your data in sync with elasticsearch
DBIx::Class::ElasticSync is a Module to link your DBIx::Class Schema to elasticsearch faster.
It helps you, to denormalize your relational database schema to fit into the document orientated elasticsearch store
This repository is under development. API changes are possible at this point of time. We will create more documentation if we tested this in the wild.
with 'DBIx::Class::ElasticSync::Role::ElasticSchema';
In advanced you need to handle over your Schema the connection informations for Elasticsearch
$schema->connect_elastic( { nodes => "localhost:9200" } );
with 'DBIx::Class::ElasticSync::Role::ElasticResult';
extends 'ElasticSync::ResultSet';
DBIx::Class::ElasticSync::Role will hook into your insert, update and delete DBIx::Class::Row methods. If you change Data in your Database, it will be synced with the elasticsearch.
This module is based on Chris 'SchepFc3' Shepherd work, which you can find here:
https://github.com/ShepFc3/ElasticDBIx
To install DBIx::Class::ElasticSync, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::ElasticSync
CPAN shell
perl -MCPAN -e shell install DBIx::Class::ElasticSync
For more information on module installation, please visit the detailed CPAN module installation guide.