`query_string` can now automatically generate phrase queries.
This commit is contained in:
parent
0daf483587
commit
638353cda3
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue