Use new ES top_hits aggregation to get severity at time of query.
Use the new groovy scripting language so tags can be set without
altering the default ES configuration.

Requires Elastic Search 1.3.