gpt4 book ai didi

algorithm - azure 表上的动态搜索

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:38:41 26 4
gpt4 key购买 nike

有人知道或有设计 azure 表格以适应动态搜索的经验吗?
我有一个图书馆类(class):

public class LibraryDocument
{
public string DocumentNumber { get; set; }
public string Complaint { get; set; }
public string Respondent { get; set; }
public string DocumentDate { get; set; }
public string Division { get; set; }
public string DocumentType { get; set; }
public string Content { get; set; }
public string Footer { get; set; }
public string Title { get; set; }
public string[] FooterItems { get; set; }
public string[] RespondentList { get; set; }
public string[] ComplaintList { get; set; }
}

我需要将其转换为 azure 表格。

输入:客户端将通过api发送一个关键字
流程:系统必须能够匹配所有图书馆数据中的关键字
输出:返回匹配数据的Partitionkeys和Rowkeys

我想不出更好的方法来设计所需的表格。
有什么建议吗?

最佳答案

Azure 存储表不支持这种用法,主要是因为行的唯一索引是其 PartitionKey + RowKey 的组合,因此任何不依赖 PK(至少)和 RK 的查询都是非常低效的(服务器基本上会解析所有行!)。

我建议看看 Lucene.NET,这是一个可以部署在 Azure 上的搜索引擎。一些资源:

关于algorithm - azure 表上的动态搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19673665/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com