Search in sources :

Example 1 with DuplicateHostCA

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

the class BsDuplicateHostCA method setCreatedBy_SignificantTerms.

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

Example 2 with DuplicateHostCA

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

the class BsDuplicateHostCA method setCreatedTime_Range.

public void setCreatedTime_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsDuplicateHostCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "createdTime");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        DuplicateHostCA ca = new DuplicateHostCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DuplicateHostCA(org.codelibs.fess.es.config.cbean.ca.DuplicateHostCA) IpRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder) RangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)

Example 3 with DuplicateHostCA

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

the class BsDuplicateHostCA method setUpdatedBy_Missing.

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

Example 4 with DuplicateHostCA

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

the class BsDuplicateHostCA method setUpdatedBy_SignificantTerms.

public void setUpdatedBy_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsDuplicateHostCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "updatedBy");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        DuplicateHostCA ca = new DuplicateHostCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DuplicateHostCA(org.codelibs.fess.es.config.cbean.ca.DuplicateHostCA) SignificantTermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)

Example 5 with DuplicateHostCA

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

the class BsDuplicateHostCA method setSortOrder_Range.

public void setSortOrder_Range(String name, ConditionOptionCall<RangeAggregationBuilder> opLambda, OperatorCall<BsDuplicateHostCA> aggsLambda) {
    RangeAggregationBuilder builder = regRangeA(name, "sortOrder");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        DuplicateHostCA ca = new DuplicateHostCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DuplicateHostCA(org.codelibs.fess.es.config.cbean.ca.DuplicateHostCA) IpRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder) RangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)

Aggregations

DuplicateHostCA (org.codelibs.fess.es.config.cbean.ca.DuplicateHostCA)28 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)8 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)7 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)7 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)4 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 DuplicateHostCQ (org.codelibs.fess.es.config.cbean.cq.DuplicateHostCQ)1 BsDuplicateHostCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsDuplicateHostCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 SamplerAggregationBuilder (org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1