Azure搜索分析器 [英] Azure Search Analyzer

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

问题描述

我们需要为索引创建一个字段,该字段不会被标记化但仍可搜索.在Azure搜索中,如果使字段可搜索,则该字段的内容将被标记化.如果您使其可过滤(文档说它将不会被标记化),则您将无法搜索它. 在Lucene中,KeywordAnalyzer可以完成这项工作.由于Azure搜索也在使用Lucene,因此无法理解为什么我们不能按原样在索引中存储字段内容,而无需拆分所有单词/删除停用词等. 不胜感激

We need to create a field for an Index that is not going to be tokenised but still be searchable. In Azure Search if you make a field searchable, then the contents of the field are tokenised. If you make it filterable (documentation says then it wont be tokenised) then you cannot search it. In Lucene a KeywordAnalyzer does this job. Since Azure Search is also using Lucene cant understand why we cannot store a field contents AS IS in the index for searching WITHOUT splitting all the words/removing stop words etc. etc. Would appreciate any assistance

推荐答案

现在可以使用 Azure搜索的自定义分析器功能.注意:此功能仍处于预览状态.

Using keyword and other Lucene analyzers is now possible using Custom analyzers feature of Azure Search. Note: this functionality is still in preview.

HTH!

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

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