removed accumulator interface and added public method to query processor to create a weighting function