【发布时间】:2017-04-20 05:21:26
【问题描述】:
我正在尝试从我的项目中进行 azure 搜索,并且正在尝试以下操作
indexClient.Documents.Search<AuctionResult>("john", new SearchParameters { IncludeTotalResultCount = true, Filter = "SoldDate ge 2017-04-06 and SoldDate le 2017-04-06 and substringof(Title, '2007')" });
我需要的是我需要根据字段标题过滤结果,如果标题包含文本'2007',则应该包含它。
我出了什么问题,我应该做出什么改变?
【问题讨论】:
-
这个查询会发生什么?任何错误?没有结果?出乎意料的结果?
-
一个错误显示没有名为 substringof 的函数
-
你不知道吗?
-
表示这种方式搜索时不支持
substringof函数。 -
您尝试过使用
contains吗?
标签: c# asp.net-mvc azure-cognitive-search