Hi,

I have 2 cases.

Given the structure
{
   email:value,
   points:value
}

Case 1:
I have 1000  rows, where multiple rows can have the same value for the 
email field.
{"email":"[email protected]","points":5}
{"email":"[email protected]","points":2}
...

How do I tell elasticsearch to search for all emails that have only 
appeared *once* in the data set.

Case 2:
Also using aggregation. How can I tell elasticsearch to get all possible 
occurrences the emails appeared in the data set.
ex.
emails = 5, occourances >= 5 // There are 5 emails that appeared 4 times in 
the dataset
emails = 6, occourances = 4
emails = 23, occourances = 3
emails = 2, occourances = 2
emails = 12, occourances = 1

Or is it even posible?

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/240d054f-131c-4904-81d6-95b7982f2f6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to