在ElasticSearch

时间:2015-07-10 09:44:25

标签: java elasticsearch

我在弹性搜索中有两个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但它不起作用。

0 个答案:

没有答案