I want to get the *sum *per *product_id *per package_type_code.
*
*
Is there a way to do that?
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 elasticsearc...@googlegroups.com <javascript:>.
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+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'elasticsearch%2Bunsubscribe@googlegroups.com');>.
For more options, visit https://groups.google.com/groups/opt_out.
you are right regarding statistical only working on numeric fields. But
that is the value, and your value is the sum field. The key (used for the
grouping) can be a string. And in your case the key needs to be a
concatenation of product_id and package_type_code
Something along these lines should help (on the top of may head, havent
looked into the docs, still lacking some coffee...
I want to get the *sum *per *product_id *per package_type_code.
*
*
Is there a way to do that?
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 elasticsearc...@**googlegroups.com.
This is likely to use a lot of memory (each value will be loaded into
memory), and perform badly. Great for prototyping but likely you should
create a concatenated field of the combined values; then just use that. It
will then perform the same as any other field.
-- Jayson
On Friday, August 23, 2013 9:03:21 AM UTC+2, Alexander Reelsen wrote:
Hey,
you are right regarding statistical only working on numeric fields. But
that is the value, and your value is the sum field. The key (used for the
grouping) can be a string. And in your case the key needs to be a
concatenation of product_id and package_type_code
Something along these lines should help (on the top of may head, havent
looked into the docs, still lacking some coffee...
I want to get the *sum *per *product_id *per package_type_code.
*
*
Is there a way to do that?
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 elasticsearc...@**googlegroups.com.
--
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:>.
For more options, visit https://groups.google.com/groups/opt_out.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.