I have roughly 50 million records in ES.  The data was generated 
artificially and is mostly duplicates.  I am executing the following query

{
    size:         0,
    aggregations: {
        by_month: {

            date_histogram: {
                field:    "time_stamp",
                interval: "1M",
                format:   "yyyy-MM-dd HH:mm"

            },
            aggregations:   {
                by_node_mac: {
                    terms:        {
                        field: "node_mac"
                    },
                    aggregations: {
                        cardinality: {field: 'device_mac'}
                    }

                }
            }
        }
    }
}

I expect the cardinality of these to be in the hundreds but I am getting 
hundreds of thousands an even millions as a count.

It looks like it's not counting the cardinality but actually counting the 
number of records.


-- 
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/68eaee35-1069-4b25-99d4-7719df7d13f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to