我正在使用visual为blob存储文件创建索引、索引器、技能集。相同的索引和技能将用于天蓝色搜索。当用户试图搜索某个关键字时,我想显示情感值,同时为每个文档搜索输出。有人能帮我怎么做吗?
运用了下面的感悟技巧。
new SentimentSkill()
{
Description = "Sentiment based on sentence",
Context = "/document",
Inputs = new List<InputFieldMappingEntry>()
{
new InputFieldMappingEntry(name: "text", source: "/document/content")
},
Outputs = new List<OutputFieldMappingEntry>()
{
new OutputFieldMappingEntry(name: "score", targetName: "sentiment")
}
},我希望在搜索时看到情感值和元数据显示。
有什么帮助吗?
谢谢,Bhanu
发布于 2020-01-16 23:19:24
您将需要添加一个索引器,该索引器将“/document/感情”映射到类型为Edm.Double的索引字段。那么你应该能够在你的指数中看到情绪。
参见设置技能集的完整示例,以及在https://learn.microsoft.com/en-us/azure/search/cognitive-search-tutorial-blob-dotnet中相应的索引器
https://stackoverflow.com/questions/59778935
复制相似问题