Skip to content

Commit aced3dd

Browse files
committed
Remove SimpleQueryStringIT#testPhraseQueryOnFieldWithNoPositions.
This test does not make sense now that `_all` is gone.
1 parent ae52bf9 commit aced3dd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

core/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -556,22 +556,6 @@ public void testExplicitAllFieldsRequested() throws Exception {
556556
containsString("cannot use [all_fields] parameter in conjunction with [fields]"));
557557
}
558558

559-
@LuceneTestCase.AwaitsFix(bugUrl="currently can't perform phrase queries on fields that don't support positions")
560-
public void testPhraseQueryOnFieldWithNoPositions() throws Exception {
561-
String indexBody = copyToStringFromClasspath("/org/elasticsearch/search/query/all-query-index.json");
562-
prepareCreate("test").setSource(indexBody, XContentType.JSON).get();
563-
ensureGreen("test");
564-
565-
List<IndexRequestBuilder> reqs = new ArrayList<>();
566-
reqs.add(client().prepareIndex("test", "doc", "1").setSource("f1", "foo bar", "f4", "eggplant parmesan"));
567-
reqs.add(client().prepareIndex("test", "doc", "2").setSource("f1", "foo bar", "f4", "chicken parmesan"));
568-
indexRandom(true, false, reqs);
569-
570-
SearchResponse resp = client().prepareSearch("test").setQuery(simpleQueryStringQuery("\"eggplant parmesan\"")).get();
571-
assertHits(resp.getHits(), "1");
572-
assertHitCount(resp, 1L);
573-
}
574-
575559
public void testAllFieldsWithSpecifiedLeniency() throws IOException {
576560
String indexBody = copyToStringFromClasspath("/org/elasticsearch/search/query/all-query-index.json");
577561
prepareCreate("test").setSource(indexBody, XContentType.JSON).get();

0 commit comments

Comments
 (0)