return the query builder for chaining

This commit is contained in:
Shay Banon 2011-08-13 22:36:11 +03:00
parent 32fcd91e2b
commit b3d1525e41
1 changed files with 2 additions and 1 deletions

View File

@ -170,8 +170,9 @@ public class QueryStringQueryBuilder extends BaseQueryBuilder {
* Set to false if phrase queries should only be generated when
* surrounded by double quotes.
*/
public void autoGeneratePhraseQueries(boolean autoGeneratePhraseQueries) {
public QueryStringQueryBuilder autoGeneratePhraseQueries(boolean autoGeneratePhraseQueries) {
this.autoGeneratePhraseQueries = autoGeneratePhraseQueries;
return this;
}
/**