OpenSearch/docs/java-api/query-dsl/span-multi-term-query.asciidoc

15 lines
550 B
Plaintext

[[java-query-dsl-span-multi-term-query]]
==== Span Multi Term Query
See {ref}/query-dsl-span-multi-term-query.html[Span Multi Term Query]
[source,java]
--------------------------------------------------
QueryBuilder qb = spanMultiTermQueryBuilder(
prefixQuery("user", "ki") <1>
);
--------------------------------------------------
<1> Can be any builder extending the `MultiTermQueryBuilder` class. For example: `FuzzyQueryBuilder`,
`PrefixQueryBuilder`, `RangeQueryBuilder`, `RegexpQueryBuilder` or `WildcardQueryBuilder`.