Search in sources :

Example 6 with CrawlingInfoCA

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

the class BsCrawlingInfoCA method setSessionId_IpRange.

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

Example 7 with CrawlingInfoCA

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

the class BsCrawlingInfoCA method setExpiredTime_Histogram.

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

Example 8 with CrawlingInfoCA

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

the class BsCrawlingInfoCA method global.

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

Example 9 with CrawlingInfoCA

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

the class BsCrawlingInfoCA method setSessionId_Terms.

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

Example 10 with CrawlingInfoCA

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

the class BsCrawlingInfoCA method setSessionId_Missing.

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

Aggregations

CrawlingInfoCA (org.codelibs.fess.es.config.cbean.ca.CrawlingInfoCA)17 MissingAggregationBuilder (org.elasticsearch.search.aggregations.bucket.missing.MissingAggregationBuilder)4 IpRangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.ip.IpRangeAggregationBuilder)4 SignificantTermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.significant.SignificantTermsAggregationBuilder)4 HistogramAggregationBuilder (org.elasticsearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)2 RangeAggregationBuilder (org.elasticsearch.search.aggregations.bucket.range.RangeAggregationBuilder)2 TermsAggregationBuilder (org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder)2 CrawlingInfoCQ (org.codelibs.fess.es.config.cbean.cq.CrawlingInfoCQ)1 BsCrawlingInfoCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsCrawlingInfoCQ)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