Suppose I have records like this
{storename:s1, product:p1, status:available}
{storename:s1, product:p2, status:not available}
{storename:s1, product:p3, status:available}
{storename:s2, product:p1, status:not available}
I want to write a query to get the following result
storename:s1
available: 2
not available: 1
storename: s2
available: 1
not available: 0
Since status field is string, I am not sure how to take the sum of those fields.
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.