use JSON;
use List::MoreUtils ();
use Moose::Util ();
BEGIN { extends 'Catalyst::Controller'; }
__PACKAGE__->config(
default => 'application/json',
map => { 'application/json' =>
/twitter/tweet/$id
Will return the document C<$id>. If L</raw_get> is set to false, the returned
JSON will not include the ElasticSearch metadata. Instead the C<_source> or
C<fields> property is retu
This helper action can be used to return a error message to the client.
The client will receive a JSON response that includes the message and
the error code. If the message is a L<ElasticSearch::Error