gpt4 book ai didi

azure-cognitive-search - 如何在 Azure 搜索中筛选空数组

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

我有如下所示的文件:

    {
"@search.score": 1,
"id": "cbdcc14a-4eab-7ce2-8c47-34cba81df722",
"salesforceRecordID": "0015B00000Rtz4QQAR",
"ownerType": "ABCS",
"productDescription": "BCM WKSTN SW",
"productName": "BCM Workstation",
"lowerProductName": "bcm workstation",
"productSKU": "CH-BCM100-X",
"lowerProductSKU": "ch-bcm100-x",
"productCode": "202046fc-7f80-P170-84df-6b3c9d6b2b18",
"productRevision": "1",
"productVersion": "3.0",
"publishDate": "2018-04-15T09:47:03.245Z",
"aomsOrderReleaseNbrArray": [
"7639752001",
"7639794003"
]
},
{
"@search.score": 1,
"id": "e468ba58-242c-7bfd-5870-fd34ba20da5b",
"salesforceRecordID": "0015B00000Rs09aQAB",
"ownerType": "SELF SUSTAINER",
"productDescription": "BCM ENG TOOL",
"productName": "BCM Engineering Tool",
"lowerProductName": "bcm engineering tool",
"productSKU": "CH-BCMET-X",
"lowerProductSKU": "ch-bcmet-x",
"productCode": "34f8448d-ddfb-P4d2-93c4-dc3ab5646fb7",
"productRevision": "2",
"productVersion": "3.0.2",
"publishDate": "2018-04-15T08:40:23.781Z",
"aomsOrderReleaseNbrArray": []
}

字段 aomsOrderReleaseNbrArray 是可过滤的。我正在寻找一种语法来过滤 aomsOrderReleaseNbrArray(如果它为空),例如

$filter=aomsOrderReleaseNbrArray ne []

有什么建议吗?

最佳答案

试试这个:$filter=aomsOrderReleaseNbrArray/any()

关于azure-cognitive-search - 如何在 Azure 搜索中筛选空数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50046757/

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