【发布时间】:2016-07-07 00:47:18
【问题描述】:
我正在试验 Azure 搜索。在我的搜索索引中,我有一个名为“描述”的字段。此字段中的一些条目示例包括:
"The trusted leader"
"The champions event was bested"
"Another day, another dollar"
"The player will succeed if he's well rested"
"Go on to the next event"
我正在尝试创建一个返回以“ted”结尾的结果的正则表达式。例如,我想
"The champions event was bested"
"The player will succeed if he's well rested"
被退回,但不是:
"The trusted leader"
我尝试了以下正则表达式。但是,它不起作用:
"搜索":"姓名:/.*(ted)$/"
我不知道为什么。我认为美元符号用于表示正则表达式中字符串的结尾。似乎它应该工作。这是 Azure 搜索中的错误吗?
【问题讨论】:
标签: lucene azure-cognitive-search