Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Kentico 12 上实现 Azure 搜索。按照下面的文章。
https://docs.kentico.com/k12/configuring-kentico/setting-up-search-on-your-website/using-azure-search/integrating-azure-search-into-pages
但是,我在智能搜索上定义了多个索引,而不仅仅是一个我可以硬编码的索引代码名称,也不能对索引字段进行硬编码。有没有我可以遵循的教程?
听起来好像您指的是构建 Azure 搜索 Web 部件,这是否正确。如果是这样,请在您的 Web 部件中创建一个属性,允许您从数据库中的列表中选择代码名称。其次,关于字段名称,您应该使用通用字段名称,如DocumentName,NodeAliaspath等。尽管如果您有非常具体的搜索结果需要显示,只需放入 switch 语句即可根据类名获取字段名称。
DocumentName
NodeAliaspath