mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
Add matchBoolPrefix
method to QueryBuilders (#58637)
This commit is contained in:
parent
735a3f344d
commit
be20aacec3
@ -85,6 +85,16 @@ public final class QueryBuilders {
|
||||
return new MultiMatchQueryBuilder(text, fieldNames); // BOOLEAN is the default
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a text query with type "BOOL_PREFIX" for the provided field name and text.
|
||||
*
|
||||
* @param name The field name.
|
||||
* @param text The query text (to be analyzed).
|
||||
*/
|
||||
public static MatchBoolPrefixQueryBuilder matchBoolPrefixQuery(String name, Object text) {
|
||||
return new MatchBoolPrefixQueryBuilder(name, text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a text query with type "PHRASE" for the provided field name and text.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user