Search in sources :

Example 16 with LabelTypeCA

use of org.codelibs.fess.es.config.cbean.ca.LabelTypeCA in project fess by codelibs.

the class BsLabelTypeCA method setVirtualHost_Missing.

public void setVirtualHost_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "virtualHost");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        LabelTypeCA ca = new LabelTypeCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : MissingAggregationBuilder(org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder) LabelTypeCA(org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)

Example 17 with LabelTypeCA

use of org.codelibs.fess.es.config.cbean.ca.LabelTypeCA in project fess by codelibs.

the class BsLabelTypeCA method setCreatedBy_IpRange.

public void setCreatedBy_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "createdBy");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        LabelTypeCA ca = new LabelTypeCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : IpRangeAggregationBuilder(org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder) LabelTypeCA(org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)

Example 18 with LabelTypeCA

use of org.codelibs.fess.es.config.cbean.ca.LabelTypeCA in project fess by codelibs.

the class BsLabelTypeCA method setCreatedBy_SignificantTerms.

public void setCreatedBy_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "createdBy");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        LabelTypeCA ca = new LabelTypeCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : SignificantTermsAggregationBuilder(org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder) LabelTypeCA(org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)

Example 19 with LabelTypeCA

use of org.codelibs.fess.es.config.cbean.ca.LabelTypeCA in project fess by codelibs.

the class BsLabelTypeCA method filter.

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

Example 20 with LabelTypeCA

use of org.codelibs.fess.es.config.cbean.ca.LabelTypeCA in project fess by codelibs.

the class BsLabelTypeCA method setValue_Missing.

public void setValue_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsLabelTypeCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "value");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        LabelTypeCA ca = new LabelTypeCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : MissingAggregationBuilder(org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder) LabelTypeCA(org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)

Aggregations

LabelTypeCA (org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)44 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)16 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)11 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)11 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)8 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 LabelTypeCQ (org.codelibs.fess.es.config.cbean.cq.LabelTypeCQ)1 BsLabelTypeCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsLabelTypeCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1