Search in sources :

Example 1 with TermsQueryBuilder

use of org.opensearch.index.query.TermsQueryBuilder in project fess by codelibs.

the class EsAbstractConditionQuery method regTermsQ.

protected TermsQueryBuilder regTermsQ(String name, Collection<?> values) {
    checkEsInvalidQueryCollection(name, values);
    TermsQueryBuilder termsQuery = QueryBuilders.termsQuery(name, values);
    regQ(termsQuery);
    return termsQuery;
}
Also used : TermsQueryBuilder(org.opensearch.index.query.TermsQueryBuilder) CommonTermsQueryBuilder(org.opensearch.index.query.CommonTermsQueryBuilder)

Example 2 with TermsQueryBuilder

use of org.opensearch.index.query.TermsQueryBuilder in project fess by codelibs.

the class EsAbstractConditionQuery method regTermsQ.

protected TermsQueryBuilder regTermsQ(String name, Collection<?> values) {
    checkEsInvalidQueryCollection(name, values);
    TermsQueryBuilder termsQuery = QueryBuilders.termsQuery(name, values);
    regQ(termsQuery);
    return termsQuery;
}
Also used : TermsQueryBuilder(org.opensearch.index.query.TermsQueryBuilder) CommonTermsQueryBuilder(org.opensearch.index.query.CommonTermsQueryBuilder)

Example 3 with TermsQueryBuilder

use of org.opensearch.index.query.TermsQueryBuilder in project fess by codelibs.

the class EsAbstractConditionQuery method regTermsQ.

protected TermsQueryBuilder regTermsQ(String name, Collection<?> values) {
    checkEsInvalidQueryCollection(name, values);
    TermsQueryBuilder termsQuery = QueryBuilders.termsQuery(name, values);
    regQ(termsQuery);
    return termsQuery;
}
Also used : TermsQueryBuilder(org.opensearch.index.query.TermsQueryBuilder) CommonTermsQueryBuilder(org.opensearch.index.query.CommonTermsQueryBuilder)

Aggregations

CommonTermsQueryBuilder (org.opensearch.index.query.CommonTermsQueryBuilder)3 TermsQueryBuilder (org.opensearch.index.query.TermsQueryBuilder)3