def update(self, **kwargs):
        checked_kwargs = self.check_opts(kwargs)
        for f in ('qf', 'pf'):
            field = kwargs.get(f, {})
            for k, v in list(field.items()):
                if v is not None:
                    try:
                        v = float(v)
                    except __HOLE__:
                        raise scorched.exc.SolrError(
                            "'%s' has non-numerical boost value" % k)
        self.kwargs.update(checked_kwargs)
dataset/ETHPy150Open lugensa/scorched/scorched/search.py/DismaxOptions.update