很简单的问题,但是找不到答案,查询文档中groupID是否等于 字符串F+该文档的_id ,这个语句要怎么写啊?
已解决
POST /sku_index_latest/_search
{
"query": {
"bool": {
"filter": {
"script": {
"script": {
"source": "'F' +doc._id.value == doc['groupId.keyword'].value",
"lang": "painless"
}
}
}
}
}
}
已解决
POST /sku_index_latest/_search
{
"query": {
"bool": {
"filter": {
"script": {
"script": {
"source": "'F' +doc._id.value == doc['groupId.keyword'].value",
"lang": "painless"
}
}
}
}
}
}
0 个回复