fix minimum_should_match in query_string builder

This commit is contained in:
Shay Banon 2011-11-10 12:13:31 +02:00
parent c4542c8349
commit 15c798fb4c
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ public class QueryStringQueryBuilder extends BaseQueryBuilder {
builder.field("rewrite", rewrite);
}
if (minimumShouldMatch != null) {
builder.field("minimum_should_write", minimumShouldMatch);
builder.field("minimum_should_match", minimumShouldMatch);
}
builder.endObject();
}