Removes unused empty parser's constructors
This commit is contained in:
parent
a13336da54
commit
65139ee40a
|
@ -29,10 +29,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class BoostingQueryParser extends BaseQueryParser<BoostingQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public BoostingQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{BoostingQueryBuilder.NAME};
|
||||
|
|
|
@ -29,10 +29,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class CommonTermsQueryParser extends BaseQueryParser<CommonTermsQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public CommonTermsQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[] { CommonTermsQueryBuilder.NAME };
|
||||
|
|
|
@ -33,10 +33,6 @@ public class ConstantScoreQueryParser extends BaseQueryParser<ConstantScoreQuery
|
|||
|
||||
private static final ParseField INNER_QUERY_FIELD = new ParseField("filter", "query");
|
||||
|
||||
@Inject
|
||||
public ConstantScoreQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{ConstantScoreQueryBuilder.NAME, Strings.toCamelCase(ConstantScoreQueryBuilder.NAME)};
|
||||
|
|
|
@ -32,10 +32,6 @@ import java.util.List;
|
|||
*/
|
||||
public class DisMaxQueryParser extends BaseQueryParser<DisMaxQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public DisMaxQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{DisMaxQueryBuilder.NAME, Strings.toCamelCase(DisMaxQueryBuilder.NAME)};
|
||||
|
|
|
@ -29,10 +29,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class ExistsQueryParser extends BaseQueryParser<ExistsQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public ExistsQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{ExistsQueryBuilder.NAME};
|
||||
|
|
|
@ -29,10 +29,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class FieldMaskingSpanQueryParser extends BaseQueryParser<FieldMaskingSpanQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public FieldMaskingSpanQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{FieldMaskingSpanQueryBuilder.NAME, Strings.toCamelCase(FieldMaskingSpanQueryBuilder.NAME)};
|
||||
|
|
|
@ -31,10 +31,6 @@ public class FuzzyQueryParser extends BaseQueryParser {
|
|||
|
||||
private static final ParseField FUZZINESS = Fuzziness.FIELD.withDeprecation("min_similarity");
|
||||
|
||||
@Inject
|
||||
public FuzzyQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{ FuzzyQueryBuilder.NAME };
|
||||
|
|
|
@ -58,10 +58,6 @@ public class GeoBoundingBoxQueryParser extends BaseQueryParserTemp {
|
|||
|
||||
public static final String FIELD = "field";
|
||||
|
||||
@Inject
|
||||
public GeoBoundingBoxQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{GeoBoundingBoxQueryBuilder.NAME, "geoBbox", "geo_bounding_box", "geoBoundingBox"};
|
||||
|
|
|
@ -44,10 +44,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class GeoDistanceQueryParser extends BaseQueryParserTemp {
|
||||
|
||||
@Inject
|
||||
public GeoDistanceQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{GeoDistanceQueryBuilder.NAME, "geoDistance"};
|
||||
|
|
|
@ -56,10 +56,6 @@ public class GeoDistanceRangeQueryParser extends BaseQueryParser<GeoDistanceRang
|
|||
public static final ParseField COERCE_FIELD = new ParseField("coerce", "normalize");
|
||||
public static final ParseField IGNORE_MALFORMED_FIELD = new ParseField("ignore_malformed");
|
||||
|
||||
@Inject
|
||||
public GeoDistanceRangeQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{GeoDistanceRangeQueryBuilder.NAME, "geoDistanceRange"};
|
||||
|
|
|
@ -48,10 +48,6 @@ public class GeoPolygonQueryParser extends BaseQueryParser<GeoPolygonQueryBuilde
|
|||
public static final ParseField IGNORE_MALFORMED_FIELD = new ParseField("ignore_malformed");
|
||||
public static final ParseField POINTS_FIELD = new ParseField("points");
|
||||
|
||||
@Inject
|
||||
public GeoPolygonQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{GeoPolygonQueryBuilder.NAME, "geoPolygon"};
|
||||
|
|
|
@ -32,10 +32,6 @@ import java.util.List;
|
|||
*/
|
||||
public class IdsQueryParser extends BaseQueryParser<IdsQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public IdsQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{IdsQueryBuilder.NAME};
|
||||
|
|
|
@ -35,10 +35,6 @@ public class IndicesQueryParser extends BaseQueryParser {
|
|||
private static final ParseField QUERY_FIELD = new ParseField("query", "filter");
|
||||
private static final ParseField NO_MATCH_QUERY = new ParseField("no_match_query", "no_match_filter");
|
||||
|
||||
@Inject
|
||||
public IndicesQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{IndicesQueryBuilder.NAME};
|
||||
|
|
|
@ -30,10 +30,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class MatchAllQueryParser extends BaseQueryParser<MatchAllQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public MatchAllQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{MatchAllQueryBuilder.NAME, Strings.toCamelCase(MatchAllQueryBuilder.NAME)};
|
||||
|
|
|
@ -27,10 +27,6 @@ import java.io.IOException;
|
|||
|
||||
public class MatchNoneQueryParser extends BaseQueryParser {
|
||||
|
||||
@Inject
|
||||
public MatchNoneQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{MatchNoneQueryBuilder.NAME, Strings.toCamelCase(MatchNoneQueryBuilder.NAME)};
|
||||
|
|
|
@ -33,10 +33,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class MatchQueryParser extends BaseQueryParser {
|
||||
|
||||
@Inject
|
||||
public MatchQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{
|
||||
|
|
|
@ -29,10 +29,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class MissingQueryParser extends BaseQueryParser<MissingQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public MissingQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{MissingQueryBuilder.NAME};
|
||||
|
|
|
@ -37,10 +37,6 @@ import java.util.Map;
|
|||
*/
|
||||
public class MultiMatchQueryParser extends BaseQueryParserTemp {
|
||||
|
||||
@Inject
|
||||
public MultiMatchQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{
|
||||
|
|
|
@ -42,7 +42,6 @@ public class NestedQueryParser extends BaseQueryParser<NestedQueryBuilder> {
|
|||
private static final ParseField FILTER_FIELD = new ParseField("filter").withAllDeprecated("query");
|
||||
private static final NestedQueryBuilder PROTOTYPE = new NestedQueryBuilder("", EmptyQueryBuilder.PROTOTYPE);
|
||||
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{NestedQueryBuilder.NAME, Strings.toCamelCase(NestedQueryBuilder.NAME)};
|
||||
|
|
|
@ -32,10 +32,6 @@ public class NotQueryParser extends BaseQueryParser<NotQueryBuilder> {
|
|||
|
||||
private static final ParseField QUERY_FIELD = new ParseField("query", "filter");
|
||||
|
||||
@Inject
|
||||
public NotQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{NotQueryBuilder.NAME};
|
||||
|
|
|
@ -32,10 +32,6 @@ public class PrefixQueryParser extends BaseQueryParser<PrefixQueryBuilder> {
|
|||
|
||||
private static final ParseField NAME_FIELD = new ParseField("_name").withAllDeprecated("query name is not supported in short version of prefix query");
|
||||
|
||||
@Inject
|
||||
public PrefixQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{PrefixQueryBuilder.NAME};
|
||||
|
|
|
@ -31,10 +31,6 @@ import java.io.IOException;
|
|||
@Deprecated
|
||||
public class QueryFilterParser extends BaseQueryParser<QueryFilterBuilder> {
|
||||
|
||||
@Inject
|
||||
public QueryFilterParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{QueryFilterBuilder.NAME};
|
||||
|
|
|
@ -37,10 +37,6 @@ public class QueryStringQueryParser extends BaseQueryParser {
|
|||
|
||||
private static final ParseField FUZZINESS = Fuzziness.FIELD.withDeprecation("fuzzy_min_sim");
|
||||
|
||||
@Inject
|
||||
public QueryStringQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{QueryStringQueryBuilder.NAME, Strings.toCamelCase(QueryStringQueryBuilder.NAME)};
|
||||
|
|
|
@ -33,10 +33,6 @@ public class RangeQueryParser extends BaseQueryParser<RangeQueryBuilder> {
|
|||
private static final ParseField FIELDDATA_FIELD = new ParseField("fielddata").withAllDeprecated("[no replacement]");
|
||||
private static final ParseField NAME_FIELD = new ParseField("_name").withAllDeprecated("query name is not supported in short version of range query");
|
||||
|
||||
@Inject
|
||||
public RangeQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{RangeQueryBuilder.NAME};
|
||||
|
|
|
@ -32,10 +32,6 @@ public class RegexpQueryParser extends BaseQueryParser<RegexpQueryBuilder> {
|
|||
|
||||
private static final ParseField NAME_FIELD = new ParseField("_name").withAllDeprecated("query name is not supported in short version of regexp query");
|
||||
|
||||
@Inject
|
||||
public RegexpQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{RegexpQueryBuilder.NAME};
|
||||
|
|
|
@ -35,10 +35,6 @@ import java.util.Map;
|
|||
*/
|
||||
public class ScriptQueryParser extends BaseQueryParser<ScriptQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public ScriptQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{ScriptQueryBuilder.NAME};
|
||||
|
|
|
@ -62,11 +62,6 @@ import java.util.Map;
|
|||
*/
|
||||
public class SimpleQueryStringParser extends BaseQueryParser<SimpleQueryStringBuilder> {
|
||||
|
||||
@Inject
|
||||
public SimpleQueryStringParser() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{SimpleQueryStringBuilder.NAME, Strings.toCamelCase(SimpleQueryStringBuilder.NAME)};
|
||||
|
|
|
@ -30,10 +30,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class SpanContainingQueryParser extends BaseQueryParser<SpanContainingQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public SpanContainingQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{SpanContainingQueryBuilder.NAME, Strings.toCamelCase(SpanContainingQueryBuilder.NAME)};
|
||||
|
|
|
@ -30,10 +30,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class SpanFirstQueryParser extends BaseQueryParser<SpanFirstQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public SpanFirstQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{SpanFirstQueryBuilder.NAME, Strings.toCamelCase(SpanFirstQueryBuilder.NAME)};
|
||||
|
|
|
@ -31,10 +31,6 @@ public class SpanMultiTermQueryParser extends BaseQueryParser<SpanMultiTermQuery
|
|||
|
||||
public static final String MATCH_NAME = "match";
|
||||
|
||||
@Inject
|
||||
public SpanMultiTermQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{SpanMultiTermQueryBuilder.NAME, Strings.toCamelCase(SpanMultiTermQueryBuilder.NAME)};
|
||||
|
|
|
@ -32,10 +32,6 @@ import java.util.List;
|
|||
*/
|
||||
public class SpanNearQueryParser extends BaseQueryParser<SpanNearQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public SpanNearQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{SpanNearQueryBuilder.NAME, Strings.toCamelCase(SpanNearQueryBuilder.NAME)};
|
||||
|
|
|
@ -30,10 +30,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class SpanNotQueryParser extends BaseQueryParser<SpanNotQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public SpanNotQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{SpanNotQueryBuilder.NAME, Strings.toCamelCase(SpanNotQueryBuilder.NAME)};
|
||||
|
|
|
@ -30,10 +30,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class SpanTermQueryParser extends BaseQueryParser<SpanTermQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public SpanTermQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{SpanTermQueryBuilder.NAME, Strings.toCamelCase(SpanTermQueryBuilder.NAME)};
|
||||
|
|
|
@ -30,10 +30,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class SpanWithinQueryParser extends BaseQueryParser<SpanWithinQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public SpanWithinQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{SpanWithinQueryBuilder.NAME, Strings.toCamelCase(SpanWithinQueryBuilder.NAME)};
|
||||
|
|
|
@ -33,10 +33,6 @@ public class TermQueryParser extends BaseQueryParser<TermQueryBuilder> {
|
|||
private static final ParseField NAME_FIELD = new ParseField("_name").withAllDeprecated("query name is not supported in short version of term query");
|
||||
private static final ParseField BOOST_FIELD = new ParseField("boost").withAllDeprecated("boost is not supported in short version of term query");
|
||||
|
||||
@Inject
|
||||
public TermQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{TermQueryBuilder.NAME};
|
||||
|
|
|
@ -43,10 +43,6 @@ public class TermsQueryParser extends BaseQueryParser {
|
|||
private static final ParseField DISABLE_COORD_FIELD = new ParseField("disable_coord").withAllDeprecated("Use [bool] query instead");
|
||||
private static final ParseField EXECUTION_FIELD = new ParseField("execution").withAllDeprecated("execution is deprecated and has no effect");
|
||||
|
||||
@Inject
|
||||
public TermsQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{TermsQueryBuilder.NAME, "in"};
|
||||
|
|
|
@ -30,10 +30,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class TypeQueryParser extends BaseQueryParser<TypeQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public TypeQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{TypeQueryBuilder.NAME};
|
||||
|
|
|
@ -29,10 +29,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class WildcardQueryParser extends BaseQueryParser<WildcardQueryBuilder> {
|
||||
|
||||
@Inject
|
||||
public WildcardQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{WildcardQueryBuilder.NAME};
|
||||
|
|
|
@ -29,10 +29,6 @@ import java.io.IOException;
|
|||
*/
|
||||
public class WrapperQueryParser extends BaseQueryParser {
|
||||
|
||||
@Inject
|
||||
public WrapperQueryParser() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] names() {
|
||||
return new String[]{WrapperQueryBuilder.NAME};
|
||||
|
|
Loading…
Reference in New Issue