The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::ElasticSync - Helps keep your data in sync with elasticsearch

Description

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

Warning

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.

TODO

Add an Application Example
Complete the Docs

Setting up your DBIx::Model

Adding role to your Schema Class

    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" } );

Adding role to your Result Class

    with 'DBIx::Class::ElasticSync::Role::ElasticResult';

Building your own ElasticResultSet Classes

    extends 'ElasticSync::ResultSet';

Running your Application

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.

Credits

This module is based on Chris 'SchepFc3' Shepherd work, which you can find here:

    https://github.com/ShepFc3/ElasticDBIx

Authors

Jens Gassmann <jg@gassmann.it> =item Patrick Kilter <pk@gassmann.it>