|
@@ -19,7 +19,6 @@
|
|
|
|
|
|
package org.elasticsearch.index.query;
|
|
|
|
|
|
-import org.apache.logging.log4j.LogManager;
|
|
|
import org.apache.lucene.analysis.Analyzer;
|
|
|
import org.apache.lucene.index.Fields;
|
|
|
import org.apache.lucene.search.BooleanClause;
|
|
@@ -43,7 +42,6 @@ import org.elasticsearch.common.bytes.BytesReference;
|
|
|
import org.elasticsearch.common.io.stream.StreamInput;
|
|
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
|
|
import org.elasticsearch.common.io.stream.Writeable;
|
|
|
-import org.elasticsearch.common.logging.DeprecationLogger;
|
|
|
import org.elasticsearch.common.lucene.search.MoreLikeThisQuery;
|
|
|
import org.elasticsearch.common.lucene.search.XMoreLikeThis;
|
|
|
import org.elasticsearch.common.lucene.uid.Versions;
|
|
@@ -79,11 +77,6 @@ import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
|
|
*/
|
|
|
public class MoreLikeThisQueryBuilder extends AbstractQueryBuilder<MoreLikeThisQueryBuilder> {
|
|
|
public static final String NAME = "more_like_this";
|
|
|
- private static final DeprecationLogger deprecationLogger = new DeprecationLogger(
|
|
|
- LogManager.getLogger(MoreLikeThisQueryBuilder.class));
|
|
|
- static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Types are deprecated in [more_like_this] " +
|
|
|
- "queries. The type should no longer be specified in the [like] and [unlike] sections.";
|
|
|
-
|
|
|
|
|
|
public static final int DEFAULT_MAX_QUERY_TERMS = XMoreLikeThis.DEFAULT_MAX_QUERY_TERMS;
|
|
|
public static final int DEFAULT_MIN_TERM_FREQ = XMoreLikeThis.DEFAULT_MIN_TERM_FREQ;
|