gpt4 book ai didi

Azure 搜索服务搜索整数

转载 作者:行者123 更新时间:2023-12-03 01:42:45 25 4
gpt4 key购买 nike

假设您有一个简单的索引:

public partial class SomeIndex
{
[Key]
[IsFilterable]
public string Id{ get; set; }

[IsSearchable, IsFilterable, IsSortable]
public string Name{ get; set; }

[IsFilterable, IsSortable]
public int SomeNumber { get; set; }

如何搜索 SomeNumber int 的确切数字匹配项?

'eq' 在此不适用。

任何建议表示赞赏。谢谢。

最佳答案

您可以使用过滤器。 “eq”完美运行。

过滤器查询将为“字段名称 eq 数字”

唯一的限制是该字段必须可过滤

关于Azure 搜索服务搜索整数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51205324/

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