public abstract class Query extends Object implements QueryBuilder
| Constructor and Description |
|---|
Query() |
| Modifier and Type | Method and Description |
|---|---|
static BoolQueryBuilder |
bool() |
Query |
build() |
static IdsQuery |
ids(Iterable<String> ids) |
static IdsQuery |
ids(String... ids) |
static MatchQuery |
match(String name,
Object value) |
static MatchQuery |
match(String name,
String text) |
static MatchPhaseQuery |
matchPhrase(String name,
String text) |
static RangeQueryBuilder |
range(String name) |
static TermQuery |
term(String name,
Object value) |
static TermsQuery |
terms(String name,
List<?> values) |
static TermsQuery |
terms(String name,
Object... values) |
public Query build()
build in interface QueryBuilderpublic static RangeQueryBuilder range(String name)
public static TermsQuery terms(String name, Object... values)
public static TermsQuery terms(String name, List<?> values)
public static MatchQuery match(String name, String text)
public static MatchQuery match(String name, Object value)
public static MatchPhaseQuery matchPhrase(String name, String text)
public static BoolQueryBuilder bool()
Copyright © 2022 The Apache Software Foundation. All rights reserved.