es查询,docId完全匹配"U001",并且(context模糊匹配"abc",或者"123")
‘’‘json
{
“query”:
{
“bool”:
{
“must”:
[
{
“match”:
{
“docId.keyword”: “U001”
}
},
{
“bool”:
{
“should”:
[
{
“wildcard”:
{
“context.keyword”: “abc”
}
},
{
“wildcard”:
{
“context.keyword”: “123”
}
}
],
“minimum_should_match”: 1
}
}
]
}
},
“sort”:
[
{
“chunkId”:
{
“order”: “asc”
}
}
],
“_source”:
{
“excludes”:
[
“embedding”,
“ext”,
“content”,
“createTime”,
“chunkSize”,
“updateTime”
]
},
“size”: 10000
}
‘’’