id: 1,
name: "Jean Pantalon",
title: null,
subtitle: null,
description: null,
tags: null,
seoUrl: null,
clickCounter: 0,
model: null,
sku: null,
ean: null,
displayPrice: 0,
price: 0,
isActive: true,
isDeleted: false,
productPhotos: null,
productCategories: [
{
id: 1,
productId: 1,
categoryId: 2,
category: {
id: 2,
name: "Spor",
topCategoryId: 0,
subCategories: null
}
},
]
大家好,elasticseaarch有这样一个json输出,我想对它进行过滤,比如productcategories te categories sports ones中的名称,如何编写这个查询
我在用c#ta nest图书馆
1条答案
按热度按时间sqougxex1#
我不知道如何在lib中执行,但在elasticsearch中:
productcategories必须Map为“嵌套”数据类型。然后您将能够构造如下查询: