我正在使用 OData Filter Client V2 通过传递关键字和不同的过滤器来过滤不同的产品,例如基于“来源”或“大小”,想要这样实现
$format=json&$top=50&$filter=substringof('COFFE', searchKey) and (origin eq 'BRA' or origin eq 'COL')
根据这个light OData文档我们可以使用
in()
所以看起来像这样
$filter=substringof('COFFE', searchKey) and origin in ('BRA', 'COL')
第一个带有“OR()”的有效,但不幸的是第二个带有“IN()”的无效,知道吗?