Skip to content

Commit

Permalink
query_string can now automatically generate phrase queries.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpountz committed Nov 2, 2016
1 parent 0daf483 commit 638353c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -163,7 +163,8 @@ protected void doAssertLuceneQuery(QueryStringQueryBuilder queryBuilder,
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)));
}
}

Expand Down

0 comments on commit 638353c

Please sign in to comment.