use of org.opensearch.index.query.MatchAllQueryBuilder in project fess by codelibs.
the class EsAbstractConditionQuery method doMatchAll.
protected void doMatchAll(ConditionOptionCall<MatchAllQueryBuilder> opLambda) {
MatchAllQueryBuilder builder = QueryBuilders.matchAllQuery();
regQ(builder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
use of org.opensearch.index.query.MatchAllQueryBuilder in project fess by codelibs.
the class EsAbstractConditionQuery method doMatchAll.
protected void doMatchAll(ConditionOptionCall<MatchAllQueryBuilder> opLambda) {
MatchAllQueryBuilder builder = QueryBuilders.matchAllQuery();
regQ(builder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
use of org.opensearch.index.query.MatchAllQueryBuilder in project fess by codelibs.
the class QueryContext method addQuery.
public void addQuery(final Consumer<BoolQueryBuilder> boolQuery) {
BoolQueryBuilder builder;
if (queryBuilder instanceof MatchAllQueryBuilder) {
builder = QueryBuilders.boolQuery();
} else {
builder = QueryBuilders.boolQuery().must(queryBuilder);
}
boolQuery.accept(builder);
if (builder.hasClauses()) {
queryBuilder = builder;
}
}
use of org.opensearch.index.query.MatchAllQueryBuilder in project fess by codelibs.
the class EsAbstractConditionQuery method doMatchAll.
protected void doMatchAll(ConditionOptionCall<MatchAllQueryBuilder> opLambda) {
MatchAllQueryBuilder builder = QueryBuilders.matchAllQuery();
regQ(builder);
if (opLambda != null) {
opLambda.callback(builder);
}
}
Aggregations