我正在使用的查询 -
This answer might not be very accurate in the language and framing but it might help someone as it did for me, that's why I felt to mention it.
映射 -
"query" : {
"bool":{
"must":{
"query_string": {
"query": "exif.Canon.0x4008:(*2*)",
"default_operator" : "AND",
"analyze_wildcard" : true
}
}
}
},
"size":50,
"from":0,
"sort": {}
}
以及数据库属性和值 -
"metadata": {
"properties": {
"exif": {
"properties": {
"Canon": {
"properties": {
"0x4008": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
}
}
这是在 ES 1.7 中通过使用 - query、filtered、query、query_string 处理不同的查询。 但是这个例子是 ES 7.3。