Search in sources :

Example 21 with ClickLogCA

use of org.codelibs.fess.es.log.cbean.ca.ClickLogCA in project fess by codelibs.

the class BsClickLogCA method setDocId_IpRange.

public void setDocId_IpRange(String name, ConditionOptionCall<IpRangeAggregationBuilder> opLambda, OperatorCall<BsClickLogCA> aggsLambda) {
    IpRangeAggregationBuilder builder = regIpRangeA(name, "docId");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ClickLogCA ca = new ClickLogCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : IpRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder) ClickLogCA(org.codelibs.fess.es.log.cbean.ca.ClickLogCA)

Example 22 with ClickLogCA

use of org.codelibs.fess.es.log.cbean.ca.ClickLogCA in project fess by codelibs.

the class BsClickLogCA method setUrl_Terms.

public void setUrl_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsClickLogCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "url");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ClickLogCA ca = new ClickLogCA();
        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) ClickLogCA(org.codelibs.fess.es.log.cbean.ca.ClickLogCA)

Example 23 with ClickLogCA

use of org.codelibs.fess.es.log.cbean.ca.ClickLogCA in project fess by codelibs.

the class BsClickLogCA method setDocId_SignificantTerms.

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

Example 24 with ClickLogCA

use of org.codelibs.fess.es.log.cbean.ca.ClickLogCA in project fess by codelibs.

the class BsClickLogCA method setDocId_Terms.

public void setDocId_Terms(String name, ConditionOptionCall<TermsAggregationBuilder> opLambda, OperatorCall<BsClickLogCA> aggsLambda) {
    TermsAggregationBuilder builder = regTermsA(name, "docId");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ClickLogCA ca = new ClickLogCA();
        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) ClickLogCA(org.codelibs.fess.es.log.cbean.ca.ClickLogCA)

Example 25 with ClickLogCA

use of org.codelibs.fess.es.log.cbean.ca.ClickLogCA in project fess by codelibs.

the class BsClickLogCA method setRequestedAt_DateRange.

public void setRequestedAt_DateRange(String name, ConditionOptionCall<DateRangeAggregationBuilder> opLambda, OperatorCall<BsClickLogCA> aggsLambda) {
    DateRangeAggregationBuilder builder = regDateRangeA(name, "requestedAt");
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ClickLogCA ca = new ClickLogCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : DateRangeAggregationBuilder(org.elasticsearch.search.aggregations.bucket.range.date.DateRangeAggregationBuilder) ClickLogCA(org.codelibs.fess.es.log.cbean.ca.ClickLogCA)

Aggregations

ClickLogCA (org.codelibs.fess.es.log.cbean.ca.ClickLogCA)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)5 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)4 DateHistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder)3 DateRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.date.DateRangeAggregationBuilder)3 ClickLogCQ (org.codelibs.fess.es.log.cbean.cq.ClickLogCQ)1 BsClickLogCQ (org.codelibs.fess.es.log.cbean.cq.bs.BsClickLogCQ)1 FilterAggregationBuilder (org.elasticsearch.search.aggregations.bucket.filter.FilterAggregationBuilder)1 GlobalAggregationBuilder (org.elasticsearch.search.aggregations.bucket.global.GlobalAggregationBuilder)1 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)1 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)1 SamplerAggregationBuilder (org.elasticsearch.search.aggregations.bucket.sampler.SamplerAggregationBuilder)1