如何使用Azure的搜索语法一样 [英] How Can i use Azure Search Like Syntax
问题描述
在我的Azure搜索,我有两个文件,一列是叫描述
和两记类似这样
[
{说明:XARATM |通力},
{说明:ATM | RCOR}
]
我的问题是,
当我使用Azure的搜索来搜索我的纪录
这样的:
他们只返回一个记录{说明:ATM | RCOR},但我需要两个纪录。
所以我可以使用一些语法如T-SQL
SELECT * FROM SearchProduct WHERE说明LIKE'%ATM%
感谢您
Azure的搜索不支持通配符,但只能在ATM格式*,这将允许后缀,如灵魂或空管局的形式搜索词。在你的情况,你需要* ATM,当前未使用Azure的搜索支持。
要了解更多有关通配符后缀,请访问MSDN API文档关于这一主题的这里。
利亚姆
In my Azure Search , i have two document , one column is call "Description"
And two record like this
[
{"Description": "XARATM | KONE"},
{"Description": "ATM | RCOR"}
]
my problem is , when i use Azure Search to search my record like:
https://myservice.search.windows.net/indexes/searchproduct/docs?search=ATM&api-version=2014-07-31-Preview
they just return one record {"Description": "ATM | RCOR"} , but i need two record. so can i use some syntax like T-SQL
SELECT * FROM SearchProduct WHERE Description Like '%ATM%'
Thank you
Azure Search does support wildcards, but only in the format ATM*, that would allow to search for words in the form of suffixes such as ATMa or ATMb. In your case, you would need *ATM, which is not currently supported with Azure Search.
To learn more about wildcards for suffix, please visit the MSDN API documentation on this topic here.
Liam
这篇关于如何使用Azure的搜索语法一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!