Search in sources :

Example 1 with PathMappingCA

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

the class BsPathMappingCA method setProcessType_SignificantTerms.

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

Example 2 with PathMappingCA

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

the class BsPathMappingCA method setUpdatedTime_Missing.

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

Example 3 with PathMappingCA

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

the class BsPathMappingCA method setReplacement_SignificantTerms.

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

Example 4 with PathMappingCA

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

the class BsPathMappingCA method setCreatedTime_Histogram.

public void setCreatedTime_Histogram(String name, ConditionOptionCall<HistogramAggregationBuilder> opLambda, OperatorCall<BsPathMappingCA> aggsLambda) {
    HistogramAggregationBuilder builder = regHistogramA(name, "createdTime");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        PathMappingCA ca = new PathMappingCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : HistogramAggregationBuilder(org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder) PathMappingCA(org.codelibs.fess.es.config.cbean.ca.PathMappingCA)

Example 5 with PathMappingCA

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

the class BsPathMappingCA method setProcessType_Terms.

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

Aggregations

PathMappingCA (org.codelibs.fess.es.config.cbean.ca.PathMappingCA)36 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)12 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)9 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)9 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)6 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 PathMappingCQ (org.codelibs.fess.es.config.cbean.cq.PathMappingCQ)1 BsPathMappingCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsPathMappingCQ)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