Search in sources :

Example 1 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setCreatedBy_IpRange.

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

Example 2 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setBoostExpr_IpRange.

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

Example 3 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method global.

public void global(String name, ConditionOptionCall<GlobalAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
    GlobalAggregationBuilder builder = regGlobalA(name);
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        BoostDocumentRuleCA ca = new BoostDocumentRuleCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : BoostDocumentRuleCA(org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA) GlobalAggregationBuilder(org.opensearch.search.aggregations.bucket.global.GlobalAggregationBuilder)

Example 4 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setCreatedTime_Missing.

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

Example 5 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setUpdatedBy_SignificantTerms.

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

Aggregations

BoostDocumentRuleCA (org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)28 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)8 MissingAggregationBuilder (org.opensearch.search.aggregations.bucket.missing.MissingAggregationBuilder)7 IpRangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.IpRangeAggregationBuilder)7 TermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.TermsAggregationBuilder)4 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)3 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)3 BoostDocumentRuleCQ (org.codelibs.fess.es.config.cbean.cq.BoostDocumentRuleCQ)1 BsBoostDocumentRuleCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsBoostDocumentRuleCQ)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