Search in sources :

Example 21 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsDataConfigCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsDataConfigCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsDataConfigCA> aggsLambda) {
    DataConfigCQ cq = new DataConfigCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        DataConfigCA ca = new DataConfigCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) BsDataConfigCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsDataConfigCQ) DataConfigCQ(org.codelibs.fess.es.config.cbean.cq.DataConfigCQ) DataConfigCA(org.codelibs.fess.es.config.cbean.ca.DataConfigCA)

Example 22 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsElevateWordCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsElevateWordCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsElevateWordCA> aggsLambda) {
    ElevateWordCQ cq = new ElevateWordCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ElevateWordCA ca = new ElevateWordCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) ElevateWordCQ(org.codelibs.fess.es.config.cbean.cq.ElevateWordCQ) BsElevateWordCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsElevateWordCQ) ElevateWordCA(org.codelibs.fess.es.config.cbean.ca.ElevateWordCA)

Example 23 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsElevateWordToLabelCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsElevateWordToLabelCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsElevateWordToLabelCA> aggsLambda) {
    ElevateWordToLabelCQ cq = new ElevateWordToLabelCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        ElevateWordToLabelCA ca = new ElevateWordToLabelCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) BsElevateWordToLabelCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsElevateWordToLabelCQ) ElevateWordToLabelCQ(org.codelibs.fess.es.config.cbean.cq.ElevateWordToLabelCQ) ElevateWordToLabelCA(org.codelibs.fess.es.config.cbean.ca.ElevateWordToLabelCA)

Example 24 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsBadWordCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsBadWordCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsBadWordCA> aggsLambda) {
    BadWordCQ cq = new BadWordCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        BadWordCA ca = new BadWordCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : BadWordCQ(org.codelibs.fess.es.config.cbean.cq.BadWordCQ) BsBadWordCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsBadWordCQ) BadWordCA(org.codelibs.fess.es.config.cbean.ca.BadWordCA) FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)

Example 25 with FilterAggregationBuilder

use of org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder in project fess by codelibs.

the class BsFileConfigCA method filter.

// ===================================================================================
// Aggregation Set
// =========
public void filter(String name, EsAbstractConditionQuery.OperatorCall<BsFileConfigCQ> queryLambda, ConditionOptionCall<FilterAggregationBuilder> opLambda, OperatorCall<BsFileConfigCA> aggsLambda) {
    FileConfigCQ cq = new FileConfigCQ();
    if (queryLambda != null) {
        queryLambda.callback(cq);
    }
    FilterAggregationBuilder builder = regFilterA(name, cq.getQuery());
    if (opLambda != null) {
        opLambda.callback(builder);
    }
    if (aggsLambda != null) {
        FileConfigCA ca = new FileConfigCA();
        aggsLambda.callback(ca);
        ca.getAggregationBuilderList().forEach(builder::subAggregation);
    }
}
Also used : FilterAggregationBuilder(org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder) BsFileConfigCQ(org.codelibs.fess.es.config.cbean.cq.bs.BsFileConfigCQ) FileConfigCQ(org.codelibs.fess.es.config.cbean.cq.FileConfigCQ) FileConfigCA(org.codelibs.fess.es.config.cbean.ca.FileConfigCA)

Aggregations

FilterAggregationBuilder (org.opensearch.search.aggregations.bucket.filter.FilterAggregationBuilder)34 AccessTokenCA (org.codelibs.fess.es.config.cbean.ca.AccessTokenCA)1 BadWordCA (org.codelibs.fess.es.config.cbean.ca.BadWordCA)1 BoostDocumentRuleCA (org.codelibs.fess.es.config.cbean.ca.BoostDocumentRuleCA)1 CrawlingInfoCA (org.codelibs.fess.es.config.cbean.ca.CrawlingInfoCA)1 CrawlingInfoParamCA (org.codelibs.fess.es.config.cbean.ca.CrawlingInfoParamCA)1 DataConfigCA (org.codelibs.fess.es.config.cbean.ca.DataConfigCA)1 DuplicateHostCA (org.codelibs.fess.es.config.cbean.ca.DuplicateHostCA)1 ElevateWordCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordCA)1 ElevateWordToLabelCA (org.codelibs.fess.es.config.cbean.ca.ElevateWordToLabelCA)1 FailureUrlCA (org.codelibs.fess.es.config.cbean.ca.FailureUrlCA)1 FileAuthenticationCA (org.codelibs.fess.es.config.cbean.ca.FileAuthenticationCA)1 FileConfigCA (org.codelibs.fess.es.config.cbean.ca.FileConfigCA)1 JobLogCA (org.codelibs.fess.es.config.cbean.ca.JobLogCA)1 KeyMatchCA (org.codelibs.fess.es.config.cbean.ca.KeyMatchCA)1 LabelTypeCA (org.codelibs.fess.es.config.cbean.ca.LabelTypeCA)1 PathMappingCA (org.codelibs.fess.es.config.cbean.ca.PathMappingCA)1 RelatedContentCA (org.codelibs.fess.es.config.cbean.ca.RelatedContentCA)1 RelatedQueryCA (org.codelibs.fess.es.config.cbean.ca.RelatedQueryCA)1 RequestHeaderCA (org.codelibs.fess.es.config.cbean.ca.RequestHeaderCA)1