elasticsearch/elasticsearch — pull request #3715 by s1monw (2013-09-17 12:17:21+00:00)
Title: Simplify NestedFieldComparators for numerics

The average and sum comparators basically share the same code which is
copy-past today. We can simplify this into a base class which reduces
code duplication and prevents copy-paste bugs.