You'll need to set the field name to not_analyzed so that you can get a
distinct value for the whole field (instead of tokenized values):
{
"mappings": {
"doc": {
"properties": {
"name": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
After that, you can do a terms facet on name and you'll get the count that
you want.
--
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/a52300c5-e540-4231-a397-4f35db1ca977%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.