You should review our guide here on custom ranking for insight into how you may want to compute various values into one that you use for your ranking purposes.
For example, one workaround is to add a boolean attribute to your records, set the ones you want to boost to a true value and use the optionalFilters. The way that the boolean attribute is calculated could be the output of values you calculate on your end.