Search in sources :

Example 6 with CrawlingInfoParamCA

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

the class BsCrawlingInfoParamCA method setKey_SignificantTerms.

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

Example 7 with CrawlingInfoParamCA

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

the class BsCrawlingInfoParamCA method setCrawlingInfoId_Missing.

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

Example 8 with CrawlingInfoParamCA

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

the class BsCrawlingInfoParamCA method setValue_IpRange.

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

Example 9 with CrawlingInfoParamCA

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

the class BsCrawlingInfoParamCA method setValue_SignificantTerms.

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

Example 10 with CrawlingInfoParamCA

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

the class BsCrawlingInfoParamCA method setValue_Terms.

public void setValue_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsCrawlingInfoParamCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "value");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        CrawlingInfoParamCA ca = new CrawlingInfoParamCA();
        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) CrawlingInfoParamCA(org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA)

Aggregations

CrawlingInfoParamCA (org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA)18 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)6 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)4 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)4 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)3 CrawlingInfoParamCQ (org.codelibs.fess.es.config.cbean.cq.CrawlingInfoParamCQ)1 BsCrawlingInfoParamCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsCrawlingInfoParamCQ)1 FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)1 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)1 SamplerAggregationBuilder (org.opensearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1