Re: Custom Aggregations

2014-08-12 Thread Adrien Grand
Hi Jin,

It is possible to write a custom aggregation, you can for example look at
this plugin: https://github.com/algolia/elasticsearch-cardinality-plugin
that implements a aggregation as a plugin.

If that would work for you, another option would be to contribute this
aggregation to Elaticsearch so that it would be available out of the box
(feel free to open an issue on Github and ping me (@jpountz), I'd be happy
to help).


On Sat, Aug 9, 2014 at 8:19 PM, Jin Huang huang.ji...@gmail.com wrote:

 Hi Alex,

 Is there an updates on this topic? I want to know how easy or how complex
 is it to write a custom aggregator. For example, I want to calculate all
 the n-th central moments, with n=2,3,4,..10. By the way, Elasticsearch
 already provides the 2nd central moment, i.e. square of the standard
 deviation.

 In general, I would like to know what kind of custom aggregator is easy to
 write?

 Thanks,
 Jin


 On Wednesday, February 12, 2014 5:49:28 AM UTC-8, Alexander Reelsen wrote:

 Hey,

 sure, you can write a custom plugin, which implements your custom
 aggregations, if you want to.
 Any specific functionality you are missing (might be interesting to get
 it in the core anyway?).


 --Alex


 On Tue, Feb 11, 2014 at 9:41 PM, Justin Uang justi...@gmail.com wrote:

 Is there any way we can define our own aggregation functions beyond the
 provided metric and bucket aggregations?

 Thanks!

 Justin

 --
 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 elasticsearc...@googlegroups.com.

 To view this discussion on the web visit https://groups.google.com/d/
 msgid/elasticsearch/90accf78-6540-4126-8268-7f997353ad74%
 40googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/elasticsearch/b2b8894d-c26d-4787-af4c-c45f793befc6%40googlegroups.com
 https://groups.google.com/d/msgid/elasticsearch/b2b8894d-c26d-4787-af4c-c45f793befc6%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
Adrien Grand

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


Re: Custom Aggregations

2014-08-09 Thread Jin Huang
Hi Alex,

Is there an updates on this topic? I want to know how easy or how complex 
is it to write a custom aggregator. For example, I want to calculate all 
the n-th central moments, with n=2,3,4,..10. By the way, Elasticsearch 
already provides the 2nd central moment, i.e. square of the standard 
deviation.

In general, I would like to know what kind of custom aggregator is easy to 
write?

Thanks, 
Jin


On Wednesday, February 12, 2014 5:49:28 AM UTC-8, Alexander Reelsen wrote:

 Hey,

 sure, you can write a custom plugin, which implements your custom 
 aggregations, if you want to.
 Any specific functionality you are missing (might be interesting to get it 
 in the core anyway?).


 --Alex


 On Tue, Feb 11, 2014 at 9:41 PM, Justin Uang justi...@gmail.com 
 javascript: wrote:

 Is there any way we can define our own aggregation functions beyond the 
 provided metric and bucket aggregations?

 Thanks!

 Justin

 -- 
 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 elasticsearc...@googlegroups.com javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/elasticsearch/90accf78-6540-4126-8268-7f997353ad74%40googlegroups.com
 .
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/b2b8894d-c26d-4787-af4c-c45f793befc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom Aggregations

2014-03-01 Thread Osvaldo Pina
Hi, 

I'm trying to create a new aggregator plugin. I was able to understand the 
structure needed to create and register my new aggregator but I don't know 
who to get the document field values inside collect method. How can I do 
that?

Em quarta-feira, 12 de fevereiro de 2014 11h49min28s UTC-2, Alexander 
Reelsen escreveu:

 Hey,

 sure, you can write a custom plugin, which implements your custom 
 aggregations, if you want to.
 Any specific functionality you are missing (might be interesting to get it 
 in the core anyway?).


 --Alex


 On Tue, Feb 11, 2014 at 9:41 PM, Justin Uang justi...@gmail.comjavascript:
  wrote:

 Is there any way we can define our own aggregation functions beyond the 
 provided metric and bucket aggregations?

 Thanks!

 Justin

 -- 
 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 elasticsearc...@googlegroups.com javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/elasticsearch/90accf78-6540-4126-8268-7f997353ad74%40googlegroups.com
 .
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/15e052d8-41d6-48f8-9f29-5482bc4bf8f0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.