OpenSearch/docs/java-api/query-dsl/span-or-query.asciidoc

15 lines
443 B
Plaintext

[[java-query-dsl-span-or-query]]
==== Span Or Query
See {ref}/query-dsl-span-or-query.html[Span Or Query]
[source,java]
--------------------------------------------------
QueryBuilder qb = spanOrQuery(
spanTermQuery("field","value1")) <1>
.addClause(spanTermQuery("field","value2")) <1>
.addClause(spanTermQuery("field","value3")); <1>
--------------------------------------------------
<1> span term queries