Azure搜索OData筛选器包含或结尾为

时间:2019-03-29 11:55:55

标签: azure odata

是否可以在标签字符串结尾或包含部分字符串的标签字符串arrray属性上执行天蓝色搜索索引查询?

我有一个看起来像这样的搜索索引记录:-

{
            "@search.score": 1,
            "id": "bmF0aW9uYWwtbWVtb3JpYWwtYXJib3JldHVtLXNjb3V0bW9vcg==",
            "type": "image",                
            "related_references": "",
            "geolocation": null,
            "is_featured": false,
            "tags": [
                "category___kerb",
                "category___paving",
                "colour___browns",
                "space___colour",
                "space___size",
                "material___yorkstone",
                "price___band3"
            ],
            "archived": false,
            "hubs": [
                "medialibrary___commercial allmedia"
            ],
            "width": 1500,
            "height": 1000,
            "last_modified": "2018-12-03T14:07:16Z"
        }

我希望能够搜索这样的记录,其中标签的eny以'paving'结尾。到目前为止,我只能找到特定标签等于整个字符串的记录,即

$filter=type eq 'image' and tags/any(t: t eq 'category___paving') 

有人有什么想法吗?

0 个答案:

没有答案