The question is how does the micro analysis of the Kibana can do this 
without setting 'not_analyzed' to the fields?

On Saturday, April 5, 2014 4:55:20 AM UTC+9, 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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a3f3fc86-17fd-48be-bf19-3a796c84b464%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to