Merge pull request #13787 from javanna/enhancement/terms_lookup_query_builder

Java api: remove TermsLookupQueryBuilder
This commit is contained in:
Luca Cavanna 2015-09-25 12:06:33 +02:00
commit ee71fc61aa
2 changed files with 4 additions and 42 deletions

View File

@ -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;
}
}

View File

@ -152,10 +152,10 @@ settings at construction time.
==== TermsQueryBuilder ==== TermsQueryBuilder
Remove the setter for `termsLookup()`, making it only possible to either use a TermsLookUp object or 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, individual values at construction time. Also moving individual settings for the TermsLookup (lookupIndex,
lookupType, lookupId, lookupPath) to the separate TermsLookUp class, using construtor only and moving lookupType, lookupId, lookupPath) to the separate TermsLookup class, using constructor only and moving
checks for validation there. checks for validation there. Removed `TermsLookupQueryBuilder` in favour of `TermsQueryBuilder`.
==== FunctionScoreQueryBuilder ==== FunctionScoreQueryBuilder