有谁知道我如何在消息中获取包含该值的值?如果我删除它搜索的 (-) 和 (/),如果我离开它们,则查询不会返回任何内容。
不是....
GET my-index/_search
{
"query": {
"wildcard" : {
"message": "*Z-01-123456-9/2020-1*"
}
}
}
不是....
GET my-index/_search
{
"query": {
"wildcard" : {
"message": "*Z\\-01\\-123456\\-9\/2020\-1*"
}
}
}