fix the build of a phrase query in the java client

This commit is contained in:
Nicolas Lalevée 2011-05-23 13:40:13 +02:00 committed by kimchy
parent fe52c5665f
commit 123b21f4ae
1 changed files with 1 additions and 1 deletions

View File

@ -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());
} }