I am performing an terms aggregation on a query to return the unique values
of a field, in this case the field being emails in the format
[email protected] or [email protected].
"aggregations": {
"users_overall": {
"terms": {
"field": "email"
}
}
}
Instead of receiving back the full unique emails that I need I get results
such as these:
- {
-
- key: gmail.com
- doc_count: 121864
}
- {
- key: yahoo.com
- doc_count: 68648
}
- {
- key: roadrunner.com
- doc_count: 58194
}
- {
- key: optimum.net
- doc_count: 35162
}
- {
- key: hotmail.com
- doc_count: 31407
}
- {
- key: nyc.rr.com
- doc_count: 24010
}
- {
- key: aol.com
- doc_count: 22502
}
-
- I've run into this problem with other fields that have values with
special characters in them as well, is there any way to perform an
aggregation like this that can ignore the special characters and return the
full value?
--
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/a0a6773c-3360-44fa-9acf-62a7ac05149e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.