17 lines
384 B
Plaintext
17 lines
384 B
Plaintext
[[java-query-dsl-or-query]]
|
|
==== Or Query
|
|
|
|
deprecated[2.0.0, Use the `bool` query instead]
|
|
|
|
See {ref}/query-dsl-or-query.html[Or Query]
|
|
|
|
[source,java]
|
|
--------------------------------------------------
|
|
QueryBuilder qb = orQuery(
|
|
rangeQuery("price").from(1).to(2), <1>
|
|
matchQuery("name", "joe") <1>
|
|
);
|
|
--------------------------------------------------
|
|
<1> queries
|
|
|