use of org.elasticsearch.index.query.BoolQueryBuilder in project fess by codelibs.
the class BsFileConfigCQ method bool.
public void bool(BoolCall<FileConfigCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
FileConfigCQ mustQuery = new FileConfigCQ();
FileConfigCQ shouldQuery = new FileConfigCQ();
FileConfigCQ mustNotQuery = new FileConfigCQ();
FileConfigCQ filterQuery = new FileConfigCQ();
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 BsLabelToRoleCQ method bool.
public void bool(BoolCall<LabelToRoleCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
LabelToRoleCQ mustQuery = new LabelToRoleCQ();
LabelToRoleCQ shouldQuery = new LabelToRoleCQ();
LabelToRoleCQ mustNotQuery = new LabelToRoleCQ();
LabelToRoleCQ filterQuery = new LabelToRoleCQ();
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 BsFileConfigToRoleCQ method bool.
public void bool(BoolCall<FileConfigToRoleCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
FileConfigToRoleCQ mustQuery = new FileConfigToRoleCQ();
FileConfigToRoleCQ shouldQuery = new FileConfigToRoleCQ();
FileConfigToRoleCQ mustNotQuery = new FileConfigToRoleCQ();
FileConfigToRoleCQ filterQuery = new FileConfigToRoleCQ();
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 BsKeyMatchCQ method bool.
public void bool(BoolCall<KeyMatchCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
KeyMatchCQ mustQuery = new KeyMatchCQ();
KeyMatchCQ shouldQuery = new KeyMatchCQ();
KeyMatchCQ mustNotQuery = new KeyMatchCQ();
KeyMatchCQ filterQuery = new KeyMatchCQ();
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 BsScheduledJobCQ method bool.
public void bool(BoolCall<ScheduledJobCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
ScheduledJobCQ mustQuery = new ScheduledJobCQ();
ScheduledJobCQ shouldQuery = new ScheduledJobCQ();
ScheduledJobCQ mustNotQuery = new ScheduledJobCQ();
ScheduledJobCQ filterQuery = new ScheduledJobCQ();
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