Aggregation

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 elasticsearch+unsubscribe@googlegroups.com.
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.

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 yuheng.du.hust@gmail.com 写道:

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 elasticsearch+unsubscribe@googlegroups.com.
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 elasticsearch+unsubscribe@googlegroups.com.
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.

I am using:

https://lh4.googleusercontent.com/-cJH7ZK_Aw_I/U-4rNlfDRwI/AAAAAAAAANA/tMq8twaPRcw/s1600/12.jpg
and I got the following errors:

https://lh5.googleusercontent.com/-lQYfexkUZ2U/U-4rqz__L8I/AAAAAAAAANI/SNisnl0duhc/s1600/34.jpg

can anyone tell me what is going wrong?

Thanks!

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/13b34421-fa99-4de4-ab11-15aac1dfff65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

What's your deviceId mapping type? Make sure it's a number as using in
percentile aggregation.

2014-08-15 23:49 GMT+08:00 Yuheng Du yuheng.du.hust@gmail.com:

I am using:

https://lh4.googleusercontent.com/-cJH7ZK_Aw_I/U-4rNlfDRwI/AAAAAAAAANA/tMq8twaPRcw/s1600/12.jpg
and I got the following errors:

https://lh5.googleusercontent.com/-lQYfexkUZ2U/U-4rqz__L8I/AAAAAAAAANI/SNisnl0duhc/s1600/34.jpg

can anyone tell me what is going wrong?

Thanks!

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/13b34421-fa99-4de4-ab11-15aac1dfff65%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/13b34421-fa99-4de4-ab11-15aac1dfff65%40googlegroups.com?utm_medium=email&utm_source=footer
.

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABwsoohkLx1mqmpRoo7WSo6r6HVouY83dLhWwRqGh80vPQZvNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.