diff --git a/solr/contrib/ltr/src/java/org/apache/solr/ltr/response/transform/LTRFeatureLoggerTransformerFactory.java b/solr/contrib/ltr/src/java/org/apache/solr/ltr/response/transform/LTRFeatureLoggerTransformerFactory.java index 9585a7f97ab..beb5ddf22ef 100644 --- a/solr/contrib/ltr/src/java/org/apache/solr/ltr/response/transform/LTRFeatureLoggerTransformerFactory.java +++ b/solr/contrib/ltr/src/java/org/apache/solr/ltr/response/transform/LTRFeatureLoggerTransformerFactory.java @@ -17,7 +17,6 @@ package org.apache.solr.ltr.response.transform; import java.io.IOException; -import java.lang.invoke.MethodHandles; import java.util.Collections; import java.util.List; import java.util.Locale; @@ -47,8 +46,6 @@ import org.apache.solr.response.transform.DocTransformer; import org.apache.solr.response.transform.TransformerFactory; import org.apache.solr.search.SolrIndexSearcher; import org.apache.solr.util.SolrPluginUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * This transformer will take care to generate and append in the response the @@ -65,8 +62,6 @@ import org.slf4j.LoggerFactory; public class LTRFeatureLoggerTransformerFactory extends TransformerFactory { - private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); - // used inside fl to specify the format (dense|sparse) of the extracted features private static final String FV_FORMAT = "format"; diff --git a/solr/contrib/ltr/src/java/org/apache/solr/ltr/search/LTRQParserPlugin.java b/solr/contrib/ltr/src/java/org/apache/solr/ltr/search/LTRQParserPlugin.java index 2b4d570bdd5..c5db963581a 100644 --- a/solr/contrib/ltr/src/java/org/apache/solr/ltr/search/LTRQParserPlugin.java +++ b/solr/contrib/ltr/src/java/org/apache/solr/ltr/search/LTRQParserPlugin.java @@ -17,7 +17,6 @@ package org.apache.solr.ltr.search; import java.io.IOException; -import java.lang.invoke.MethodHandles; import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -46,8 +45,6 @@ import org.apache.solr.search.QParserPlugin; import org.apache.solr.search.RankQuery; import org.apache.solr.search.SyntaxError; import org.apache.solr.util.SolrPluginUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * Plug into solr a rerank model. @@ -60,8 +57,6 @@ public class LTRQParserPlugin extends QParserPlugin implements ResourceLoaderAwa public static final String NAME = "ltr"; private static Query defaultQuery = new MatchAllDocsQuery(); - private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); - // params for setting custom external info that features can use, like query // intent static final String EXTERNAL_FEATURE_INFO = "efi.";