No problem:
#!/usr/bin/perl
use 5.010;
use Data::Dumper;
use Search::Elasticsearch;
my $e = Search::Elasticsearch->new(
nodes => [
'10.13.57.35:9200',
'10.13.57.36:9200'
]
);
my $r = $e->search(
index => 'logstash-2014.08.15',
body => {
aggs => {
aggsname => {
percentiles => {
field => "h5_view_loadtime"
}
}
},
size => 0
}
);
say for values $r->{'aggregations'}->{'aggsname'};
在 2014年8月15日,上午6:52,Yuheng Du <[email protected]> 写道:
> Does perl module of elasticsearch allows Aggregation syntax?
>
> I run a few tests but it failed.
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/4c023317-6ef3-42cd-9496-bda276e8c2ba%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/FE4E6588-1BA2-4F6E-B21B-BE61618759FC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.