fix the build of a phrase query in the java client
This commit is contained in:
parent
fe52c5665f
commit
123b21f4ae
|
@ -129,7 +129,7 @@ public class TextQueryBuilder extends BaseQueryBuilder {
|
||||||
builder.startObject(TextQueryParser.NAME);
|
builder.startObject(TextQueryParser.NAME);
|
||||||
builder.startObject(name);
|
builder.startObject(name);
|
||||||
|
|
||||||
builder.field("text", text);
|
builder.field("query", text);
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
builder.field("type", type.toString().toLowerCase());
|
builder.field("type", type.toString().toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue