diff --git a/core/src/main/java/org/elasticsearch/index/query/TermsLookupQueryBuilder.java b/core/src/main/java/org/elasticsearch/index/query/TermsLookupQueryBuilder.java deleted file mode 100644 index a074e2adcda..00000000000 --- a/core/src/main/java/org/elasticsearch/index/query/TermsLookupQueryBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to Elasticsearch under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.elasticsearch.index.query; - - -/** - * A filter for a field based on several terms matching on any of them. - * @deprecated use {@link TermsQueryBuilder} instead. - */ -@Deprecated -public class TermsLookupQueryBuilder extends TermsQueryBuilder { - - public TermsLookupQueryBuilder(String name) { - super(name, (Object[]) null); - } - - @Override - public String getWriteableName() { - return TermsQueryBuilder.NAME; - } -} \ No newline at end of file diff --git a/docs/reference/migration/migrate_query_refactoring.asciidoc b/docs/reference/migration/migrate_query_refactoring.asciidoc index 520a5fa2994..6fa60ed1d86 100644 --- a/docs/reference/migration/migrate_query_refactoring.asciidoc +++ b/docs/reference/migration/migrate_query_refactoring.asciidoc @@ -152,10 +152,10 @@ settings at construction time. ==== TermsQueryBuilder -Remove the setter for `termsLookup()`, making it only possible to either use a TermsLookUp object or -individual values at constrution time. Also moving individual settings for the TermsLookUp (lookupIndex, -lookupType, lookupId, lookupPath) to the separate TermsLookUp class, using construtor only and moving -checks for validation there. +Remove the setter for `termsLookup()`, making it only possible to either use a TermsLookup object or +individual values at construction time. Also moving individual settings for the TermsLookup (lookupIndex, +lookupType, lookupId, lookupPath) to the separate TermsLookup class, using constructor only and moving +checks for validation there. Removed `TermsLookupQueryBuilder` in favour of `TermsQueryBuilder`. ==== FunctionScoreQueryBuilder