use of org.elasticsearch.index.query.BoolQueryBuilder in project fess by codelibs.
the class BsThumbnailQueueCQ method bool.
public void bool(BoolCall<ThumbnailQueueCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
ThumbnailQueueCQ mustQuery = new ThumbnailQueueCQ();
ThumbnailQueueCQ shouldQuery = new ThumbnailQueueCQ();
ThumbnailQueueCQ mustNotQuery = new ThumbnailQueueCQ();
ThumbnailQueueCQ filterQuery = new ThumbnailQueueCQ();
boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(), mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
if (opLambda != null) {
opLambda.callback(builder);
}
}
}
use of org.elasticsearch.index.query.BoolQueryBuilder in project fess by codelibs.
the class BsWebConfigToLabelCQ method bool.
public void bool(BoolCall<WebConfigToLabelCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
WebConfigToLabelCQ mustQuery = new WebConfigToLabelCQ();
WebConfigToLabelCQ shouldQuery = new WebConfigToLabelCQ();
WebConfigToLabelCQ mustNotQuery = new WebConfigToLabelCQ();
WebConfigToLabelCQ filterQuery = new WebConfigToLabelCQ();
boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(), mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
if (opLambda != null) {
opLambda.callback(builder);
}
}
}
use of org.elasticsearch.index.query.BoolQueryBuilder in project fess by codelibs.
the class BsWebConfigToRoleCQ method bool.
public void bool(BoolCall<WebConfigToRoleCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
WebConfigToRoleCQ mustQuery = new WebConfigToRoleCQ();
WebConfigToRoleCQ shouldQuery = new WebConfigToRoleCQ();
WebConfigToRoleCQ mustNotQuery = new WebConfigToRoleCQ();
WebConfigToRoleCQ filterQuery = new WebConfigToRoleCQ();
boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(), mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
if (opLambda != null) {
opLambda.callback(builder);
}
}
}
use of org.elasticsearch.index.query.BoolQueryBuilder in project fess by codelibs.
the class BsFavoriteLogCQ method bool.
public void bool(BoolCall<FavoriteLogCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
FavoriteLogCQ mustQuery = new FavoriteLogCQ();
FavoriteLogCQ shouldQuery = new FavoriteLogCQ();
FavoriteLogCQ mustNotQuery = new FavoriteLogCQ();
FavoriteLogCQ filterQuery = new FavoriteLogCQ();
boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(), mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
if (opLambda != null) {
opLambda.callback(builder);
}
}
}
use of org.elasticsearch.index.query.BoolQueryBuilder in project fess by codelibs.
the class BsSearchFieldLogCQ method bool.
public void bool(BoolCall<SearchFieldLogCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
SearchFieldLogCQ mustQuery = new SearchFieldLogCQ();
SearchFieldLogCQ shouldQuery = new SearchFieldLogCQ();
SearchFieldLogCQ mustNotQuery = new SearchFieldLogCQ();
SearchFieldLogCQ filterQuery = new SearchFieldLogCQ();
boolLambda.callback(mustQuery, shouldQuery, mustNotQuery, filterQuery);
if (mustQuery.hasQueries() || shouldQuery.hasQueries() || mustNotQuery.hasQueries() || filterQuery.hasQueries()) {
BoolQueryBuilder builder = regBoolCQ(mustQuery.getQueryBuilderList(), shouldQuery.getQueryBuilderList(), mustNotQuery.getQueryBuilderList(), filterQuery.getQueryBuilderList());
if (opLambda != null) {
opLambda.callback(builder);
}
}
}
Aggregations