我在弹性搜索中有两个commentRootIdentityFields
,如下所示
commentRootIdentityFields": [
{
"key": "endPointId",
"value": "dummy-endpoint"
},
{
"key": "api_id",
"value": "AU5ohQ6CQ50uGOgYbW0a"
},
{
"key": "projectId",
"value": "project-97cafcff-bc96-4b01-bd3b-fce66216674b"
}
]
和
commentRootIdentityFields": [
{
"key": "projectId",
"value": "project-97cafcff-bc96-4b01-bd3b-fce66216674b"
},
{
"key": "endPointId",
"value": "dummy-endpoint"
}
]
现在我想要仅使用项目ID和端点的搜索查询,以便Elasticsearch仅返回第二个commentRootIdentifier
字段。现在我正在使用BooleanQueryFilter但它不起作用。