mirror of https://github.com/apache/lucene.git
Remove unused (private static final) loggers in LTRQParserPlugin and LTRFeatureLoggerTransformerFactory.
This commit is contained in:
parent
dfa342bc90
commit
50ed729459
|
@ -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";
|
||||
|
||||
|
|
|
@ -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.";
|
||||
|
|
Loading…
Reference in New Issue