`query_string` can now automatically generate phrase queries.

This commit is contained in:
Adrien Grand 2016-11-02 13:55:52 +01:00
parent 0daf483587
commit 638353cda3
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ public class QueryStringQueryBuilderTests extends AbstractQueryTestCase<QueryStr
assertThat(query, instanceOf(MatchNoDocsQuery.class));
} else {
assertThat(query, either(instanceOf(TermQuery.class)).or(instanceOf(AllTermQuery.class))
.or(instanceOf(BooleanQuery.class)).or(instanceOf(DisjunctionMaxQuery.class)));
.or(instanceOf(BooleanQuery.class)).or(instanceOf(DisjunctionMaxQuery.class))
.or(instanceOf(PhraseQuery.class)));
}
}