I would like to retrieve statistical data about a string field like the
min, max and average length (by counting the number of characters inside
the string). I am using CURL to do this and I have what I have tried so far
"query":{
"match_all": {}
},
"facets":{
"stats":{
"statistical":{
"field":"title"}
}
}
returns me exception because the facet expects a number field. How can I
achieve my goal? 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/3c1a08f2-e467-47c3-a667-43837ac9b352%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.