Search in sources :

Example 6 with RelatedQueryCA

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

the class BsRelatedQueryCA method setTerm_Terms.

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

Example 7 with RelatedQueryCA

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

the class BsRelatedQueryCA method setQueries_SignificantTerms.

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

Example 8 with RelatedQueryCA

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

the class BsRelatedQueryCA method setCreatedBy_SignificantTerms.

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

Example 9 with RelatedQueryCA

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

the class BsRelatedQueryCA method setVirtualHost_Terms.

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

Example 10 with RelatedQueryCA

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

the class BsRelatedQueryCA method setUpdatedTime_Histogram.

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

Aggregations

RelatedQueryCA (org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA)29 SignificantTermsAggregationBuilder (org.opensearch.search.aggregations.bucket.terms.SignificantTermsAggregationBuilder)10 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)5 HistogramAggregationBuilder (org.opensearch.search.aggregations.bucket.histogram.HistogramAggregationBuilder)2 RangeAggregationBuilder (org.opensearch.search.aggregations.bucket.range.RangeAggregationBuilder)2 RelatedQueryCQ (org.codelibs.fess.es.config.cbean.cq.RelatedQueryCQ)1 BsRelatedQueryCQ (org.codelibs.fess.es.config.cbean.cq.bs.BsRelatedQueryCQ)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