Azure搜索,按部分条款搜索 [英] Azure search, search by partial terms

查看:75
本文介绍了Azure搜索,按部分条款搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有两个在门户中进行搜索的示例,我希望在第二次搜索中可以获得一些结果,即使缺少一个字母也是如此.

Here are two examples for search in the portal, where I would expect to get some results in the second search, even with one letter missing.

搜索使用希伯来语

整个学期会返回一些结果,

The full term return some results,

缺少一个字母的同一词不返回任何结果,

The same term with one letter missing return no results,

推荐答案

有几种方法可以在Azure搜索中搜索部分术语.您需要确定以下哪种方法最适合您的方案.根据示例,模糊搜索或前缀搜索似乎都能胜任.您可以在文档中了解这些方法之间的区别.

There are a few ways you can search for partial terms in Azure Search. You'll need to decide which of the following methods will work best in your scenario. Based on the example it seems either fuzzy search or prefix search will do the job. You can learn about the differences between the these methods in the documentation.

  • 模糊搜索:博客文档
  • 通过定义自定义分析器为部分项编制索引:博客
  • Fuzzy search: blog, documentation
  • Wildcard search, specifically prefix search: documentation
  • Regular expression search: documentation
  • Index partial terms by defining a custom analyzer: blog, documentation

如果您对以上任何内容有任何疑问,请告诉我

Let me know if you have any questions about any of the above

这篇关于Azure搜索,按部分条款搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆