add category_range and category_period args to wrapper code
category_range applies to number type category index fields (only)
category_period applies to date type category index fields (only)
category_period units are days
code adjusts the min max category values as necessary