12 lines
292 B
Plaintext
12 lines
292 B
Plaintext
|
[[java-query-dsl-limit-query]]
|
||
|
==== Limit Query
|
||
|
|
||
|
See {ref}/query-dsl-limit-query.html[Limit Query]
|
||
|
|
||
|
[source,java]
|
||
|
--------------------------------------------------
|
||
|
QueryBuilder qb = limitQuery(100); <1>
|
||
|
--------------------------------------------------
|
||
|
<1> number of documents per shard
|
||
|
|