in pkg/client/elasticsearch/query.go [221:232]
func getFloat(v interface{}) (float64, error) {
switch i := v.(type) {
case float64:
return i, nil
case float32:
return float64(i), nil
case int64:
return float64(i), nil
default:
return math.NaN(), fmt.Errorf("getFloat: value is of incompatible type: %v", v)
}
}