From 1011791f4fb65bc02e8fd58aa99940d62418c9fd Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Fri, 11 Aug 2017 11:30:40 +0200 Subject: [PATCH] Remove SimpleQueryStringIT#testPhraseQueryOnFieldWithNoPositions. This test does not make sense now that `_all` is gone. --- .../search/query/SimpleQueryStringIT.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java b/core/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java index a32a8060379..0b8c2ecf129 100644 --- a/core/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java +++ b/core/src/test/java/org/elasticsearch/search/query/SimpleQueryStringIT.java @@ -556,22 +556,6 @@ public class SimpleQueryStringIT extends ESIntegTestCase { containsString("cannot use [all_fields] parameter in conjunction with [fields]")); } - @LuceneTestCase.AwaitsFix(bugUrl="currently can't perform phrase queries on fields that don't support positions") - public void testPhraseQueryOnFieldWithNoPositions() throws Exception { - String indexBody = copyToStringFromClasspath("/org/elasticsearch/search/query/all-query-index.json"); - prepareCreate("test").setSource(indexBody, XContentType.JSON).get(); - ensureGreen("test"); - - List reqs = new ArrayList<>(); - reqs.add(client().prepareIndex("test", "doc", "1").setSource("f1", "foo bar", "f4", "eggplant parmesan")); - reqs.add(client().prepareIndex("test", "doc", "2").setSource("f1", "foo bar", "f4", "chicken parmesan")); - indexRandom(true, false, reqs); - - SearchResponse resp = client().prepareSearch("test").setQuery(simpleQueryStringQuery("\"eggplant parmesan\"")).get(); - assertHits(resp.getHits(), "1"); - assertHitCount(resp, 1L); - } - public void testAllFieldsWithSpecifiedLeniency() throws IOException { String indexBody = copyToStringFromClasspath("/org/elasticsearch/search/query/all-query-index.json"); prepareCreate("test").setSource(indexBody, XContentType.JSON).get();