mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 20:52:22 +00:00
update
This commit is contained in:
parent
f75bed0fc3
commit
b76317b9d0
@ -97,35 +97,40 @@ es 定义了一套查询 DSL,当我们把 es 当数据库使用时,需要用
|
||||
{
|
||||
"query": {
|
||||
"bool": {
|
||||
"must": [{
|
||||
"must": [
|
||||
{
|
||||
"match": {
|
||||
"field_1": {
|
||||
"a": {
|
||||
"query": "1",
|
||||
"type": "phrase"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"field_2": {
|
||||
"b": {
|
||||
"query": "2",
|
||||
"type": "phrase"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"field_3": {
|
||||
"c": {
|
||||
"query": "3",
|
||||
"type": "phrase"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"field_4": {
|
||||
"d": {
|
||||
"query": "4",
|
||||
"type": "phrase"
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"from": 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user