cleanup imports
use field_value_factor as example
make two different error messages depending on if query was defined using java api or json
use == instead of Double.compare
make WeightFunction a wrapper
revert unneded chnages