Awesome Thanks Binh Ly
On Friday, April 4, 2014 2:55:20 PM UTC-5, Binh Ly wrote:
>
> 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/efc12955-99e5-4bac-b7e8-e8f04441a01a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.