Search in sources :

Example 16 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setUrlExpr_SignificantTerms.

public void setUrlExpr_SignificantTerms(String name, ConditionOptionCall<SignificantTermsAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
    SignificantTermsAggregationBuilder builder = regSignificantTermsA(name, "urlExpr");
    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.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder) BoostDocumentRuleCA(org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)

Example 17 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setUrlExpr_Terms.

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

Example 18 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setCreatedBy_Terms.

public void setCreatedBy_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(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 : TermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder) SignificantTermsAggregationBuilder(org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder) BoostDocumentRuleCA(org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)

Example 19 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setUpdatedTime_Missing.

public void setUpdatedTime_Missing(String name, ConditionOptionCall<MissingAggregationBuilder> opLambda, OperatorCall<BsBoostDocumentRuleCA> aggsLambda) {
    MissingAggregationBuilder builder = regMissingA(name, "updatedTime");
    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.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder) BoostDocumentRuleCA(org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)

Example 20 with BoostDocumentRuleCA

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

the class BsBoostDocumentRuleCA method setSortOrder_Histogram.

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

Aggregations

BoostDocumentRuleCA (org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)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 BoostDocumentRuleCQ (org.codelibs.fess.es.config.cbean.cq.BoostDocumentRuleCQ)1 BsBoostDocumentRuleCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsBoostDocumentRuleCQ)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