The closest you can probably get is to script and then sum (but you need to 
know the exact terms you are querying up front). It could be slow if you 
got lots of documents, but here is more information:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-advanced-scripting.html

For example:

POST _search
{
  "script_fields": {
    "locality_bologna": {
      "script": "_index['locality']['bologna'].tf()"
    }
  }
}

-- 
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/5dc9cd99-b796-437d-be0e-06d78b8ee492%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to