“条款”和“通配符”由 Elasticsearch 提供。'Terms' 是搜索多个 OR 条件:
{
"terms": {
"IP": [
"192.168.100.11",
"192.168.100.13"
]
}
'通配符'由 *(星号)识别:
{
"wildcard": {
"IP": "192.168.*.11"
}
我想合并“通配符”+“条款”功能。我怎样才能做到这一点?例如:
{
"wildcard": {
"IP": [
"192.168.*.11",
"192.168.*.13"
]
}