Search in sources :

Example 1 with PrefixQueryBuilder

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

the class EsAbstractConditionQuery method regPrefixQ.

protected PrefixQueryBuilder regPrefixQ(String name, String prefix) {
    checkEsInvalidQuery(name, prefix);
    PrefixQueryBuilder prefixQuery = QueryBuilders.prefixQuery(name, prefix);
    regQ(prefixQuery);
    return prefixQuery;
}
Also used : PrefixQueryBuilder(org.opensearch.index.query.PrefixQueryBuilder) MatchPhrasePrefixQueryBuilder(org.opensearch.index.query.MatchPhrasePrefixQueryBuilder)

Example 2 with PrefixQueryBuilder

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

the class EsAbstractConditionQuery method regPrefixQ.

protected PrefixQueryBuilder regPrefixQ(String name, String prefix) {
    checkEsInvalidQuery(name, prefix);
    PrefixQueryBuilder prefixQuery = QueryBuilders.prefixQuery(name, prefix);
    regQ(prefixQuery);
    return prefixQuery;
}
Also used : PrefixQueryBuilder(org.opensearch.index.query.PrefixQueryBuilder) MatchPhrasePrefixQueryBuilder(org.opensearch.index.query.MatchPhrasePrefixQueryBuilder)

Example 3 with PrefixQueryBuilder

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

the class EsAbstractConditionQuery method regPrefixQ.

protected PrefixQueryBuilder regPrefixQ(String name, String prefix) {
    checkEsInvalidQuery(name, prefix);
    PrefixQueryBuilder prefixQuery = QueryBuilders.prefixQuery(name, prefix);
    regQ(prefixQuery);
    return prefixQuery;
}
Also used : PrefixQueryBuilder(org.opensearch.index.query.PrefixQueryBuilder) MatchPhrasePrefixQueryBuilder(org.opensearch.index.query.MatchPhrasePrefixQueryBuilder)

Aggregations

MatchPhrasePrefixQueryBuilder (org.opensearch.index.query.MatchPhrasePrefixQueryBuilder)3 PrefixQueryBuilder (org.opensearch.index.query.PrefixQueryBuilder)3