Support custom weights for the :boost option.