summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java')
-rw-r--r--core/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java36
1 files changed, 22 insertions, 14 deletions
diff --git a/core/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java b/core/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java
index e66bdff512..36c4f32845 100644
--- a/core/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java
+++ b/core/src/test/java/org/elasticsearch/index/query/MultiMatchQueryBuilderTests.java
@@ -21,7 +21,15 @@ package org.elasticsearch.index.query;
import org.apache.lucene.index.Term;
import org.apache.lucene.queries.ExtendedCommonTermsQuery;
-import org.apache.lucene.search.*;
+import org.apache.lucene.search.BooleanQuery;
+import org.apache.lucene.search.BoostQuery;
+import org.apache.lucene.search.DisjunctionMaxQuery;
+import org.apache.lucene.search.FuzzyQuery;
+import org.apache.lucene.search.MatchAllDocsQuery;
+import org.apache.lucene.search.MatchNoDocsQuery;
+import org.apache.lucene.search.PhraseQuery;
+import org.apache.lucene.search.Query;
+import org.apache.lucene.search.TermQuery;
import org.elasticsearch.common.lucene.all.AllTermQuery;
import org.elasticsearch.common.lucene.search.MultiPhrasePrefixQuery;
import org.elasticsearch.index.search.MatchQuery;
@@ -219,19 +227,19 @@ public class MultiMatchQueryBuilderTests extends AbstractQueryTestCase<MultiMatc
public void testFromJson() throws IOException {
String json =
- "{\n" +
- " \"multi_match\" : {\n" +
- " \"query\" : \"quick brown fox\",\n" +
- " \"fields\" : [ \"title^1.0\", \"title.original^1.0\", \"title.shingles^1.0\" ],\n" +
- " \"type\" : \"most_fields\",\n" +
- " \"operator\" : \"OR\",\n" +
- " \"slop\" : 0,\n" +
- " \"prefix_length\" : 0,\n" +
- " \"max_expansions\" : 50,\n" +
- " \"lenient\" : false,\n" +
- " \"zero_terms_query\" : \"NONE\",\n" +
- " \"boost\" : 1.0\n" +
- " }\n" +
+ "{\n" +
+ " \"multi_match\" : {\n" +
+ " \"query\" : \"quick brown fox\",\n" +
+ " \"fields\" : [ \"title^1.0\", \"title.original^1.0\", \"title.shingles^1.0\" ],\n" +
+ " \"type\" : \"most_fields\",\n" +
+ " \"operator\" : \"OR\",\n" +
+ " \"slop\" : 0,\n" +
+ " \"prefix_length\" : 0,\n" +
+ " \"max_expansions\" : 50,\n" +
+ " \"lenient\" : false,\n" +
+ " \"zero_terms_query\" : \"NONE\",\n" +
+ " \"boost\" : 1.0\n" +
+ " }\n" +
"}";
MultiMatchQueryBuilder parsed = (MultiMatchQueryBuilder) parseQuery(json);