17 lines
372 B
Plaintext
17 lines
372 B
Plaintext
[[java-query-dsl-ids-query]]
|
|
==== Ids Query
|
|
|
|
|
|
See {ref}/query-dsl-ids-query.html[Ids Query]
|
|
|
|
[source,java]
|
|
--------------------------------------------------
|
|
QueryBuilder qb = idsQuery("my_type", "type2")
|
|
.addIds("1", "4", "100");
|
|
|
|
QueryBuilder qb = idsQuery() <1>
|
|
.addIds("1", "4", "100");
|
|
--------------------------------------------------
|
|
<1> type is optional
|
|
|