The sum aggregation will only work on one of your fields, so for example it'll add up all the p1 values. If you want to sum p1+p2+p3, you can pre-compute at index time or make a scripted field
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.