From 898fef11c92cf031b1c4c98e85d83019ee976a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Laleve=CC=81e?= Date: Wed, 30 May 2012 17:22:08 +0200 Subject: [PATCH] Add an interface about "boost settable" query builders --- .../index/query/BoolQueryBuilder.java | 2 +- .../index/query/BoostableQueryBuilder.java | 14 ++++++++++++++ .../index/query/BoostingQueryBuilder.java | 2 +- .../index/query/ConstantScoreQueryBuilder.java | 2 +- .../query/CustomFiltersScoreQueryBuilder.java | 2 +- .../index/query/CustomScoreQueryBuilder.java | 2 +- .../index/query/DisMaxQueryBuilder.java | 2 +- .../index/query/FieldMaskingSpanQueryBuilder.java | 2 +- .../index/query/FieldQueryBuilder.java | 2 +- .../index/query/FilteredQueryBuilder.java | 2 +- .../query/FuzzyLikeThisFieldQueryBuilder.java | 2 +- .../index/query/FuzzyLikeThisQueryBuilder.java | 2 +- .../index/query/FuzzyQueryBuilder.java | 2 +- .../index/query/HasChildQueryBuilder.java | 2 +- .../elasticsearch/index/query/IdsQueryBuilder.java | 2 +- .../index/query/MatchAllQueryBuilder.java | 2 +- .../index/query/MoreLikeThisFieldQueryBuilder.java | 2 +- .../index/query/MoreLikeThisQueryBuilder.java | 2 +- .../index/query/NestedQueryBuilder.java | 2 +- .../index/query/PrefixQueryBuilder.java | 2 +- .../index/query/QueryStringQueryBuilder.java | 2 +- .../index/query/RangeQueryBuilder.java | 2 +- .../index/query/SpanFirstQueryBuilder.java | 2 +- .../index/query/SpanNearQueryBuilder.java | 2 +- .../index/query/SpanNotQueryBuilder.java | 2 +- .../index/query/SpanOrQueryBuilder.java | 2 +- .../index/query/SpanTermQueryBuilder.java | 2 +- .../index/query/TermQueryBuilder.java | 2 +- .../index/query/TermsQueryBuilder.java | 2 +- .../index/query/TextQueryBuilder.java | 2 +- .../index/query/TopChildrenQueryBuilder.java | 2 +- .../index/query/WildcardQueryBuilder.java | 2 +- 32 files changed, 45 insertions(+), 31 deletions(-) create mode 100644 src/main/java/org/elasticsearch/index/query/BoostableQueryBuilder.java diff --git a/src/main/java/org/elasticsearch/index/query/BoolQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/BoolQueryBuilder.java index df563ac9177..4b2c0945e3f 100644 --- a/src/main/java/org/elasticsearch/index/query/BoolQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/BoolQueryBuilder.java @@ -30,7 +30,7 @@ import java.util.List; * * */ -public class BoolQueryBuilder extends BaseQueryBuilder { +public class BoolQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private ArrayList mustClauses = new ArrayList(); diff --git a/src/main/java/org/elasticsearch/index/query/BoostableQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/BoostableQueryBuilder.java new file mode 100644 index 00000000000..9855dd28b96 --- /dev/null +++ b/src/main/java/org/elasticsearch/index/query/BoostableQueryBuilder.java @@ -0,0 +1,14 @@ +package org.elasticsearch.index.query; + +/** + * Query builder which allow setting some boost + */ +public interface BoostableQueryBuilder> { + + /** + * Sets the boost for this query. Documents matching this query will (in addition to the normal + * weightings) have their score multiplied by the boost provided. + */ + public B boost(float boost); + +} diff --git a/src/main/java/org/elasticsearch/index/query/BoostingQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/BoostingQueryBuilder.java index 7987189d236..1942a55df16 100644 --- a/src/main/java/org/elasticsearch/index/query/BoostingQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/BoostingQueryBuilder.java @@ -35,7 +35,7 @@ import java.io.IOException; * multiplied by the supplied "boost" parameter, so this should be less than 1 to achieve a * demoting effect */ -public class BoostingQueryBuilder extends BaseQueryBuilder { +public class BoostingQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private QueryBuilder positiveQuery; diff --git a/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java index ca54e735a33..d4bf85da22b 100644 --- a/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/ConstantScoreQueryBuilder.java @@ -29,7 +29,7 @@ import java.io.IOException; * * */ -public class ConstantScoreQueryBuilder extends BaseQueryBuilder { +public class ConstantScoreQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final FilterBuilder filterBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/CustomFiltersScoreQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/CustomFiltersScoreQueryBuilder.java index c82536c7dc4..b119dacf03d 100644 --- a/src/main/java/org/elasticsearch/index/query/CustomFiltersScoreQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/CustomFiltersScoreQueryBuilder.java @@ -30,7 +30,7 @@ import java.util.Map; /** * A query that uses a filters with a script associated with them to compute the score. */ -public class CustomFiltersScoreQueryBuilder extends BaseQueryBuilder { +public class CustomFiltersScoreQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final QueryBuilder queryBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/CustomScoreQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/CustomScoreQueryBuilder.java index 819f5518522..359a245520b 100644 --- a/src/main/java/org/elasticsearch/index/query/CustomScoreQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/CustomScoreQueryBuilder.java @@ -30,7 +30,7 @@ import java.util.Map; * * */ -public class CustomScoreQueryBuilder extends BaseQueryBuilder { +public class CustomScoreQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final QueryBuilder queryBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/DisMaxQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/DisMaxQueryBuilder.java index 1eed06ed1e0..415c765e102 100644 --- a/src/main/java/org/elasticsearch/index/query/DisMaxQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/DisMaxQueryBuilder.java @@ -33,7 +33,7 @@ import static com.google.common.collect.Lists.newArrayList; * * */ -public class DisMaxQueryBuilder extends BaseQueryBuilder { +public class DisMaxQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private ArrayList queries = newArrayList(); diff --git a/src/main/java/org/elasticsearch/index/query/FieldMaskingSpanQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/FieldMaskingSpanQueryBuilder.java index e9d7aed2444..a7922b01b73 100644 --- a/src/main/java/org/elasticsearch/index/query/FieldMaskingSpanQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/FieldMaskingSpanQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class FieldMaskingSpanQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder { +public class FieldMaskingSpanQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder, BoostableQueryBuilder { private final SpanQueryBuilder queryBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/FieldQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/FieldQueryBuilder.java index 3138492166a..806f848ee58 100644 --- a/src/main/java/org/elasticsearch/index/query/FieldQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/FieldQueryBuilder.java @@ -28,7 +28,7 @@ import java.io.IOException; * version of {@link QueryStringQueryBuilder} that simply runs against * a single field. */ -public class FieldQueryBuilder extends BaseQueryBuilder { +public class FieldQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { public static enum Operator { OR, diff --git a/src/main/java/org/elasticsearch/index/query/FilteredQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/FilteredQueryBuilder.java index da93a65e49a..8219f136c6a 100644 --- a/src/main/java/org/elasticsearch/index/query/FilteredQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/FilteredQueryBuilder.java @@ -27,7 +27,7 @@ import java.io.IOException; /** * A query that applies a filter to the results of another query. */ -public class FilteredQueryBuilder extends BaseQueryBuilder { +public class FilteredQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final QueryBuilder queryBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/FuzzyLikeThisFieldQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/FuzzyLikeThisFieldQueryBuilder.java index 11bc8d6e1fc..12a3c27662e 100644 --- a/src/main/java/org/elasticsearch/index/query/FuzzyLikeThisFieldQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/FuzzyLikeThisFieldQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class FuzzyLikeThisFieldQueryBuilder extends BaseQueryBuilder { +public class FuzzyLikeThisFieldQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String name; diff --git a/src/main/java/org/elasticsearch/index/query/FuzzyLikeThisQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/FuzzyLikeThisQueryBuilder.java index 55724a9ede4..df95b235172 100644 --- a/src/main/java/org/elasticsearch/index/query/FuzzyLikeThisQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/FuzzyLikeThisQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class FuzzyLikeThisQueryBuilder extends BaseQueryBuilder { +public class FuzzyLikeThisQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String[] fields; diff --git a/src/main/java/org/elasticsearch/index/query/FuzzyQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/FuzzyQueryBuilder.java index 42bbb3ada62..9a7c6e23139 100644 --- a/src/main/java/org/elasticsearch/index/query/FuzzyQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/FuzzyQueryBuilder.java @@ -28,7 +28,7 @@ import java.io.IOException; * * */ -public class FuzzyQueryBuilder extends BaseQueryBuilder { +public class FuzzyQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String name; diff --git a/src/main/java/org/elasticsearch/index/query/HasChildQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/HasChildQueryBuilder.java index 0e38f185eaf..bcddc1c080e 100644 --- a/src/main/java/org/elasticsearch/index/query/HasChildQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/HasChildQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class HasChildQueryBuilder extends BaseQueryBuilder { +public class HasChildQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final QueryBuilder queryBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/IdsQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/IdsQueryBuilder.java index 56b4031137f..0d521acab75 100644 --- a/src/main/java/org/elasticsearch/index/query/IdsQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/IdsQueryBuilder.java @@ -29,7 +29,7 @@ import java.util.List; /** * A query that will return only documents matching specific ids (and a type). */ -public class IdsQueryBuilder extends BaseQueryBuilder { +public class IdsQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final List types; diff --git a/src/main/java/org/elasticsearch/index/query/MatchAllQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/MatchAllQueryBuilder.java index d96308da046..3171ddb5eeb 100644 --- a/src/main/java/org/elasticsearch/index/query/MatchAllQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/MatchAllQueryBuilder.java @@ -28,7 +28,7 @@ import java.io.IOException; * * */ -public class MatchAllQueryBuilder extends BaseQueryBuilder { +public class MatchAllQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private String normsField; diff --git a/src/main/java/org/elasticsearch/index/query/MoreLikeThisFieldQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/MoreLikeThisFieldQueryBuilder.java index 33761f4cc10..9130507d47f 100644 --- a/src/main/java/org/elasticsearch/index/query/MoreLikeThisFieldQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/MoreLikeThisFieldQueryBuilder.java @@ -28,7 +28,7 @@ import java.io.IOException; * * */ -public class MoreLikeThisFieldQueryBuilder extends BaseQueryBuilder { +public class MoreLikeThisFieldQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String name; diff --git a/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java index 5b1b4b282b9..2c07bc56bcb 100644 --- a/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/MoreLikeThisQueryBuilder.java @@ -29,7 +29,7 @@ import java.io.IOException; * * */ -public class MoreLikeThisQueryBuilder extends BaseQueryBuilder { +public class MoreLikeThisQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String[] fields; diff --git a/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java index c0aa187514d..d3ee3740ed8 100644 --- a/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/NestedQueryBuilder.java @@ -23,7 +23,7 @@ import org.elasticsearch.common.xcontent.XContentBuilder; import java.io.IOException; -public class NestedQueryBuilder extends BaseQueryBuilder { +public class NestedQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final QueryBuilder queryBuilder; private final FilterBuilder filterBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/PrefixQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/PrefixQueryBuilder.java index d22ba5b3a6d..2e5e80aed42 100644 --- a/src/main/java/org/elasticsearch/index/query/PrefixQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/PrefixQueryBuilder.java @@ -28,7 +28,7 @@ import java.io.IOException; * * */ -public class PrefixQueryBuilder extends BaseQueryBuilder { +public class PrefixQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String name; diff --git a/src/main/java/org/elasticsearch/index/query/QueryStringQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/QueryStringQueryBuilder.java index 6232ff065d6..ba290d23e8e 100644 --- a/src/main/java/org/elasticsearch/index/query/QueryStringQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/QueryStringQueryBuilder.java @@ -37,7 +37,7 @@ import static com.google.common.collect.Lists.newArrayList; *

* (shay.baon) */ -public class QueryStringQueryBuilder extends BaseQueryBuilder { +public class QueryStringQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { public static enum Operator { OR, diff --git a/src/main/java/org/elasticsearch/index/query/RangeQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/RangeQueryBuilder.java index c4035b794ee..fd2fbc10e86 100644 --- a/src/main/java/org/elasticsearch/index/query/RangeQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/RangeQueryBuilder.java @@ -28,7 +28,7 @@ import java.io.IOException; * * */ -public class RangeQueryBuilder extends BaseQueryBuilder { +public class RangeQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String name; diff --git a/src/main/java/org/elasticsearch/index/query/SpanFirstQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/SpanFirstQueryBuilder.java index 74e440a0f42..ca5beca1a2e 100644 --- a/src/main/java/org/elasticsearch/index/query/SpanFirstQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/SpanFirstQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class SpanFirstQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder { +public class SpanFirstQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder, BoostableQueryBuilder { private final SpanQueryBuilder matchBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/SpanNearQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/SpanNearQueryBuilder.java index 19ad4da6e51..c8b0a619333 100644 --- a/src/main/java/org/elasticsearch/index/query/SpanNearQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/SpanNearQueryBuilder.java @@ -27,7 +27,7 @@ import java.util.ArrayList; /** * */ -public class SpanNearQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder { +public class SpanNearQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder, BoostableQueryBuilder { private ArrayList clauses = new ArrayList(); diff --git a/src/main/java/org/elasticsearch/index/query/SpanNotQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/SpanNotQueryBuilder.java index 39cc3b9cac0..b339db4a2a6 100644 --- a/src/main/java/org/elasticsearch/index/query/SpanNotQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/SpanNotQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class SpanNotQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder { +public class SpanNotQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder, BoostableQueryBuilder { private SpanQueryBuilder include; diff --git a/src/main/java/org/elasticsearch/index/query/SpanOrQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/SpanOrQueryBuilder.java index 1892632d581..b1ceb1b9c9b 100644 --- a/src/main/java/org/elasticsearch/index/query/SpanOrQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/SpanOrQueryBuilder.java @@ -27,7 +27,7 @@ import java.util.ArrayList; /** * */ -public class SpanOrQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder { +public class SpanOrQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder, BoostableQueryBuilder { private ArrayList clauses = new ArrayList(); diff --git a/src/main/java/org/elasticsearch/index/query/SpanTermQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/SpanTermQueryBuilder.java index 690d7b0d894..ba23fdb883a 100644 --- a/src/main/java/org/elasticsearch/index/query/SpanTermQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/SpanTermQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class SpanTermQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder { +public class SpanTermQueryBuilder extends BaseQueryBuilder implements SpanQueryBuilder, BoostableQueryBuilder { private final String name; diff --git a/src/main/java/org/elasticsearch/index/query/TermQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/TermQueryBuilder.java index 1d7315a10c7..188c0901ad0 100644 --- a/src/main/java/org/elasticsearch/index/query/TermQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/TermQueryBuilder.java @@ -28,7 +28,7 @@ import java.io.IOException; * * */ -public class TermQueryBuilder extends BaseQueryBuilder { +public class TermQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String name; diff --git a/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java index d9e6e409c87..55ab4b49b5c 100644 --- a/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class TermsQueryBuilder extends BaseQueryBuilder { +public class TermsQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String name; diff --git a/src/main/java/org/elasticsearch/index/query/TextQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/TextQueryBuilder.java index 59d6bc5e72f..dee4bce5481 100644 --- a/src/main/java/org/elasticsearch/index/query/TextQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/TextQueryBuilder.java @@ -27,7 +27,7 @@ import java.io.IOException; * Text query is a query that analyzes the text and constructs a query as the result of the analysis. It * can construct different queries based on the type provided. */ -public class TextQueryBuilder extends BaseQueryBuilder { +public class TextQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { public static enum Operator { OR, diff --git a/src/main/java/org/elasticsearch/index/query/TopChildrenQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/TopChildrenQueryBuilder.java index b32e8f5373c..6a25f8c42cc 100644 --- a/src/main/java/org/elasticsearch/index/query/TopChildrenQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/TopChildrenQueryBuilder.java @@ -26,7 +26,7 @@ import java.io.IOException; /** * */ -public class TopChildrenQueryBuilder extends BaseQueryBuilder { +public class TopChildrenQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final QueryBuilder queryBuilder; diff --git a/src/main/java/org/elasticsearch/index/query/WildcardQueryBuilder.java b/src/main/java/org/elasticsearch/index/query/WildcardQueryBuilder.java index 01c5469495f..27ef5bff001 100644 --- a/src/main/java/org/elasticsearch/index/query/WildcardQueryBuilder.java +++ b/src/main/java/org/elasticsearch/index/query/WildcardQueryBuilder.java @@ -33,7 +33,7 @@ import java.io.IOException; * * */ -public class WildcardQueryBuilder extends BaseQueryBuilder { +public class WildcardQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder { private final String name;