For a field mapped as string I have stored list of strings in the ES index, 
for ex:

  subject: ["Scientific Research", "Numerical Analysis", "History of Art"]

I would like to query this field and retrieve the full names of categories 
with their frequency count. What I tried so far with facets:

  "query":{
       "match_all": {}
   }, 
   "facets":{
       "tag":{
           "terms":{
               "field":"subject"}
             }
   }  

is not working as expected because it splits my subject fields into tokens 
and returns me the top most frequent stopwords. How can I get full entries 
ordered by counts for an analyzed field, and not only the top 10, if 
possible? Thanks!

-- 
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/b85c18f5-ef9b-46c3-b210-30b68094a477%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to