The Best Buy Search allows to search products specifying weight , depth , length and using < and > operator. For example:
weight<4
However it seems that the API is using alpha sorting rather than actual numeric values comparison for those fields and operators.
for example it will consider that 11 < 4
Are there any way to force the API to properly evaluate those conditions ?
The "weight" attribute in the API is a string field that contains both the value and the unit of measure. The unit of measure may differ per product. So it is not possible for the API to evaluate the "weight" attribute numerically in searches and sorting.
However - there is also a "shippingWeight" attribute in the API, which IS evaluated numerically and the unit of measure is pounds. When searching and sorting by "shippingWeight", the API will treat the value numerically. Of course, "shippingWeight" is not the same as the raw "weight" attribute - but I hope it will be sufficient for your use case.