diff --git a/core/src/test/java/org/elasticsearch/index/query/MatchQueryBuilderTests.java b/core/src/test/java/org/elasticsearch/index/query/MatchQueryBuilderTests.java index 3c24ec182fa..f9da80d97d6 100644 --- a/core/src/test/java/org/elasticsearch/index/query/MatchQueryBuilderTests.java +++ b/core/src/test/java/org/elasticsearch/index/query/MatchQueryBuilderTests.java @@ -19,11 +19,10 @@ package org.elasticsearch.index.query; -import org.apache.lucene.index.Term; import org.apache.lucene.queries.ExtendedCommonTermsQuery; import org.apache.lucene.search.*; -import org.elasticsearch.common.lucene.BytesRefs; import org.elasticsearch.common.lucene.search.MultiPhrasePrefixQuery; +import org.elasticsearch.common.lucene.search.Queries; import org.elasticsearch.index.mapper.MappedFieldType; import org.elasticsearch.index.search.MatchQuery; import org.elasticsearch.index.search.MatchQuery.ZeroTermsQuery; @@ -35,7 +34,6 @@ import java.util.Locale; import static org.hamcrest.CoreMatchers.either; import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.notNullValue; public class MatchQueryBuilderTests extends AbstractQueryTestCase { @@ -144,7 +142,15 @@ public class MatchQueryBuilderTests extends AbstractQueryTestCase 0) { assertEquals(bq.clauses().size(), queryBuilder.value().toString().split(" ").length); @@ -160,7 +166,11 @@ public class MatchQueryBuilderTests extends AbstractQueryTestCase 0); long startDate = System.currentTimeMillis(); String query = "{\n" + " \"range\" : {\n" +