odata v4 with c# - search.in不起作用
我尝试使用$ filter参数与值通道/任何(t:search.in(t,'a,b',',','))。但是在ODATA V4中,我有此错误消息
"message": "The query specified in the URI is not valid. An unknown function with name 'search.in' was found. This may also be a function import or a key lookup on a navigation property, which is not allowed.",
解决此问题的建议吗?
我的端点... $ filter = Channels/Any(t:search.in(t,'a,b',',',','))
我的模型属性频道是这样定义的public细绳[]?频道{get;放; }
I trying use $filter parameter with value Channels/any(t: search.in(t,'A,B', ',')). But in OData V4 i have this error message
"message": "The query specified in the URI is not valid. An unknown function with name 'search.in' was found. This may also be a function import or a key lookup on a navigation property, which is not allowed.",
Any suggestion to resolve this?
my endpoint ...$filter=Channels/any(t: search.in(t,'A,B', ','))
my model property Channels is defined this way public string[]? Channels { get; set; }
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
search.in 是由Azure AI搜索支持的操作员
,并且不是ODATA规范的一部分。
对于ASP.NET Core的ODATA软件包,您需要使用odata
$ filter
用 in 操作员 :search.in
is an operator supported by Azure AI Search and isn't part of the OData specification.For ASP.NET Core's OData package, you would need to use an OData
$filter
expression with thein
operator, e.g.: