Search in sources :

Example 11 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsFailureUrlCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsFailureUrlCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsFailureUrlCA> aggsLambda) {
    FailureUrlCQ cq = new FailureUrlCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FailureUrlCA ca = new FailureUrlCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) BsFailureUrlCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsFailureUrlCQ) FailureUrlCQ(org.codelibs.fess.es.config.cbean.cq.FailureUrlCQ) FailureUrlCA(org.codelibs.fess.es.config.cbean.ca.FailureUrlCA)

Example 12 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsAccessTokenCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsAccessTokenCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsAccessTokenCA> aggsLambda) {
    AccessTokenCQ cq = new AccessTokenCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        AccessTokenCA ca = new AccessTokenCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : AccessTokenCQ(org.codelibs.fess.es.config.cbean.cq.AccessTokenCQ) BsAccessTokenCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsAccessTokenCQ) FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) AccessTokenCA(org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)

Example 13 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsCrawlingInfoCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsCrawlingInfoCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoCA> aggsLambda) {
    CrawlingInfoCQ cq = new CrawlingInfoCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        CrawlingInfoCA ca = new CrawlingInfoCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) CrawlingInfoCQ(org.codelibs.fess.es.config.cbean.cq.CrawlingInfoCQ) BsCrawlingInfoCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsCrawlingInfoCQ) CrawlingInfoCA(org.codelibs.fess.es.config.cbean.ca.CrawlingInfoCA)

Example 14 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsGroupCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsGroupCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsGroupCA> aggsLambda) {
    GroupCQ cq = new GroupCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        GroupCA ca = new GroupCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) GroupCQ(org.codelibs.fess.es.user.cbean.cq.GroupCQ) BsGroupCQ(org.codelibs.fess.es.user.cbean.cq.bs.BsGroupCQ) GroupCA(org.codelibs.fess.es.user.cbean.ca.GroupCA)

Example 15 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsUserCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsUserCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsUserCA> aggsLambda) {
    UserCQ cq = new UserCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        UserCA ca = new UserCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) UserCQ(org.codelibs.fess.es.user.cbean.cq.UserCQ) BsUserCQ(org.codelibs.fess.es.user.cbean.cq.bs.BsUserCQ) UserCA(org.codelibs.fess.es.user.cbean.ca.UserCA)

Aggregations

FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)34 AccessTokenCA (org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)1 BadWordCA (org.codelibs.fess.es.config.cbean.ca.BadWordCA)1 BoostDocumentRuleCA (org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)1 CrawlingInfoCA (org.codelibs.fess.es.config.cbean.ca.CrawlingInfoCA)1 CrawlingInfoParamCA (org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA)1 DataConfigCA (org.codelibs.fess.es.config.cbean.ca.DataConfigCA)1 DuplicateHostCA (org.codelibs.fess.es.config.cbean.ca.DuplicateHostCA)1 ElevateWordCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordCA)1 ElevateWordToLabelCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordToLabelCA)1 FailureUrlCA (org.codelibs.fess.es.config.cbean.ca.FailureUrlCA)1 FileAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA)1 FileConfigCA (org.codelibs.fess.es.config.cbean.ca.FileConfigCA)1 JobLogCA (org.codelibs.fess.es.config.cbean.ca.JobLogCA)1 KeyMatchCA (org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)1 LabelTypeCA (org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)1 PathMappingCA (org.codelibs.fess.es.config.cbean.ca.PathMappingCA)1 RelatedContentCA (org.codelibs.fess.es.config.cbean.ca.RelatedContentCA)1 RelatedQueryCA (org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA)1 RequestHeaderCA (org.codelibs.fess.es.config.cbean.ca.RequestHeaderCA)1