Search in sources :

Example 1 with MatchQueryBuilder

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

the class EsAbstractConditionQuery method regFuzzyQ.

protected MatchQueryBuilder regFuzzyQ(String name, Object value) {
    checkEsInvalidQuery(name, value);
    MatchQueryBuilder fuzzyQuery = QueryBuilders.matchQuery(name, value).fuzziness(Fuzziness.AUTO);
    regQ(fuzzyQuery);
    return fuzzyQuery;
}
Also used : MatchQueryBuilder(org.opensearch.index.query.MatchQueryBuilder)

Example 2 with MatchQueryBuilder

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

the class EsAbstractConditionQuery method regMatchQ.

protected MatchQueryBuilder regMatchQ(String name, Object value) {
    checkEsInvalidQuery(name, value);
    MatchQueryBuilder matchQuery = QueryBuilders.matchQuery(name, value);
    regQ(matchQuery);
    return matchQuery;
}
Also used : MatchQueryBuilder(org.opensearch.index.query.MatchQueryBuilder)

Example 3 with MatchQueryBuilder

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

the class EsAbstractConditionQuery method regFuzzyQ.

protected MatchQueryBuilder regFuzzyQ(String name, Object value) {
    checkEsInvalidQuery(name, value);
    MatchQueryBuilder fuzzyQuery = QueryBuilders.matchQuery(name, value).fuzziness(Fuzziness.AUTO);
    regQ(fuzzyQuery);
    return fuzzyQuery;
}
Also used : MatchQueryBuilder(org.opensearch.index.query.MatchQueryBuilder)

Example 4 with MatchQueryBuilder

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

the class EsAbstractConditionQuery method regMatchQ.

protected MatchQueryBuilder regMatchQ(String name, Object value) {
    checkEsInvalidQuery(name, value);
    MatchQueryBuilder matchQuery = QueryBuilders.matchQuery(name, value);
    regQ(matchQuery);
    return matchQuery;
}
Also used : MatchQueryBuilder(org.opensearch.index.query.MatchQueryBuilder)

Example 5 with MatchQueryBuilder

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

the class EsAbstractConditionQuery method regFuzzyQ.

protected MatchQueryBuilder regFuzzyQ(String name, Object value) {
    checkEsInvalidQuery(name, value);
    MatchQueryBuilder fuzzyQuery = QueryBuilders.matchQuery(name, value).fuzziness(Fuzziness.AUTO);
    regQ(fuzzyQuery);
    return fuzzyQuery;
}
Also used : MatchQueryBuilder(org.opensearch.index.query.MatchQueryBuilder)

Aggregations

MatchQueryBuilder (org.opensearch.index.query.MatchQueryBuilder)6