Commit b087ba8a authored by 赵威's avatar 赵威

add size

parent fb08dd6b
...@@ -82,7 +82,7 @@ object ES { ...@@ -82,7 +82,7 @@ object ES {
// resp // resp
val a = """ val a = s"""
{ {
"query": { "query": {
"bool": { "bool": {
...@@ -91,9 +91,10 @@ object ES { ...@@ -91,9 +91,10 @@ object ES {
{ "range": { "content_level": { "gte": 3 } } } { "range": { "content_level": { "gte": 3 } } }
] ]
} }
} },
"size", 10
} }
""" """.stripMargin
val resp = client.execute { val resp = client.execute {
search("gm-dbmw-diary-read").source(a) search("gm-dbmw-diary-read").source(a)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment