so i've got some data in a field (originally from my sql db) that is a 
delimited string.

in the example of music. i've got a field of genres associated to an album.

a document may look something like : 'genres': 'Rock | Pop | Alternative'.

i want to get a faceted result with those values being split up.

something like:

"facets": {
      "tags": {
         "_type": "terms",
         "missing": 841,
         "total": 159,
         "other": 3,
         "terms": [
            {
               "term": "Rock",
               "count": 89
            },
            {
               "term": " Pop,
               "count": 42
            },
            {
               "term": " Alternative",
               "count": 16
            },
         ]
      }
   }

-- 
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/f665bd3c-5546-4029-939c-09e7d60d2286%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to