use of org.elasticsearch.index.query.BoolQueryBuilder in project fess by codelibs.
the class BsDataConfigCQ method bool.
public void bool(BoolCall<DataConfigCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
DataConfigCQ mustQuery = new DataConfigCQ();
DataConfigCQ shouldQuery = new DataConfigCQ();
DataConfigCQ mustNotQuery = new DataConfigCQ();
DataConfigCQ filterQuery = new DataConfigCQ();
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 BsCrawlingInfoParamCQ method bool.
public void bool(BoolCall<CrawlingInfoParamCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
CrawlingInfoParamCQ mustQuery = new CrawlingInfoParamCQ();
CrawlingInfoParamCQ shouldQuery = new CrawlingInfoParamCQ();
CrawlingInfoParamCQ mustNotQuery = new CrawlingInfoParamCQ();
CrawlingInfoParamCQ filterQuery = new CrawlingInfoParamCQ();
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 BsDuplicateHostCQ method bool.
public void bool(BoolCall<DuplicateHostCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
DuplicateHostCQ mustQuery = new DuplicateHostCQ();
DuplicateHostCQ shouldQuery = new DuplicateHostCQ();
DuplicateHostCQ mustNotQuery = new DuplicateHostCQ();
DuplicateHostCQ filterQuery = new DuplicateHostCQ();
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 BsFailureUrlCQ method bool.
public void bool(BoolCall<FailureUrlCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
FailureUrlCQ mustQuery = new FailureUrlCQ();
FailureUrlCQ shouldQuery = new FailureUrlCQ();
FailureUrlCQ mustNotQuery = new FailureUrlCQ();
FailureUrlCQ filterQuery = new FailureUrlCQ();
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 BsFileAuthenticationCQ method bool.
public void bool(BoolCall<FileAuthenticationCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {
FileAuthenticationCQ mustQuery = new FileAuthenticationCQ();
FileAuthenticationCQ shouldQuery = new FileAuthenticationCQ();
FileAuthenticationCQ mustNotQuery = new FileAuthenticationCQ();
FileAuthenticationCQ filterQuery = new FileAuthenticationCQ();
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