Skip to content

Instantly share code, notes, and snippets.

@eiro
Created October 5, 2011 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiro/1264624 to your computer and use it in GitHub Desktop.
Save eiro/1264624 to your computer and use it in GitHub Desktop.
elasticsearch result ?
use ElasticSearch;
my $es = ElasticSearch->new(qw/ servers localhost:9200 /) or die;
$es->error_trace(1);
say YAML::Dump $es->search( qw/ index log type log query /,
{ text => {qw/ id bb303ab02dded9577a87db0e82649f77cf4f51c8c8198860cc29b64321336c92:2011-10-04:16/}
}
);
__END__
---
_shards:
failed: 0
successful: 5
total: 5
hits:
hits: []
max_score: ~
total: 0
timed_out: !!perl/scalar:JSON::XS::Boolean 0
took: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment