Search in sources :

Example 1 with IdsQueryBuilder

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

the class EsAbstractConditionQuery method regIdsQ.

protected IdsQueryBuilder regIdsQ(Collection<String> values) {
    checkEsInvalidQueryCollection("_id", values);
    IdsQueryBuilder idsQuery = QueryBuilders.idsQuery().addIds(values.toArray(new String[values.size()]));
    regQ(idsQuery);
    return idsQuery;
}
Also used : IdsQueryBuilder(org.opensearch.index.query.IdsQueryBuilder)

Example 2 with IdsQueryBuilder

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

the class EsAbstractConditionQuery method regIdsQ.

protected IdsQueryBuilder regIdsQ(Collection<String> values) {
    checkEsInvalidQueryCollection("_id", values);
    IdsQueryBuilder idsQuery = QueryBuilders.idsQuery().addIds(values.toArray(new String[values.size()]));
    regQ(idsQuery);
    return idsQuery;
}
Also used : IdsQueryBuilder(org.opensearch.index.query.IdsQueryBuilder)

Example 3 with IdsQueryBuilder

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

the class EsAbstractConditionQuery method regIdsQ.

protected IdsQueryBuilder regIdsQ(Collection<String> values) {
    checkEsInvalidQueryCollection("_id", values);
    IdsQueryBuilder idsQuery = QueryBuilders.idsQuery().addIds(values.toArray(new String[values.size()]));
    regQ(idsQuery);
    return idsQuery;
}
Also used : IdsQueryBuilder(org.opensearch.index.query.IdsQueryBuilder)

Aggregations

IdsQueryBuilder (org.opensearch.index.query.IdsQueryBuilder)3