def update(self, fields, query_fields=None, **kwargs):
        if fields is None:
            return
        if not is_iter(fields):
            fields = [fields]
        self.fields.update(fields)

        if query_fields is not None:
            for k, v in list(query_fields.items()):
                if k not in self.fields:
                    raise scorched.exc.SolrError(
                        "'%s' specified in query_fields but not fields" % k)
                if v is not None:
                    try:
                        v = float(v)
                    except __HOLE__:
                        raise scorched.exc.SolrError(
                            "'%s' has non-numerical boost value" % k)
            self.query_fields.update(query_fields)

        checked_kwargs = self.check_opts(kwargs)
        self.kwargs.update(checked_kwargs)
dataset/ETHPy150Open lugensa/scorched/scorched/search.py/MoreLikeThisOptions.update