Job van Achterberg

TAKE NOTE

This module is ALPHA and subject to change. Use at your own risk.

NAME

Dancer::Plugin::ElasticSearch - ElasticSearch wrapper for Dancer

SYNOPSIS

    use Dancer::Plugin::ElasticSearch;

        $data = elsearch->get(
            index => 'twitter',
            type  => 'tweet',
            id    => 1
        );

DESCRIPTION

Dancer::Plugin::ElasticSearch allows easy ES use with the elsearch keyword.

METHODS

elsearch

Returns an ES connection object.

CONFIG

Make sure to appropriately configure the plugin in your config.yml

    plugins:
        ElasticSearch:
            servers                 : 127.0.0.1:9200
            transport           : http
            max_requests        : 10_000
            trace_calls     : 1
            no_refresh          : 0

SEE ALSO

Dancer, ElasticSearch, perl(1)

AUTHOR

Job van Achterberg <jkva@cpan.org>

LICENSE

Copyright (C) 2011 Job van Achterberg <jkva@cpan.org>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html