SOLR-12372: contrib/clustering (private) logger rename

This commit is contained in:
Christine Poerschke 2018-05-18 20:00:49 +01:00
parent 0e1426627a
commit 4da0d68981
2 changed files with 6 additions and 6 deletions

View File

@ -54,7 +54,7 @@ import org.tartarus.snowball.ext.TurkishStemmer;
* @lucene.experimental * @lucene.experimental
*/ */
public class LuceneCarrot2StemmerFactory implements IStemmerFactory { public class LuceneCarrot2StemmerFactory implements IStemmerFactory {
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
@Override @Override
public IStemmer getStemmer(LanguageCode language) { public IStemmer getStemmer(LanguageCode language) {
@ -137,7 +137,7 @@ public class LuceneCarrot2StemmerFactory implements IStemmerFactory {
.get(language); .get(language);
if (stemmerClazz == null) { if (stemmerClazz == null) {
logger.warn("No Snowball stemmer class for: " + language.name() log.warn("No Snowball stemmer class for: " + language.name()
+ ". Quality of clustering may be degraded."); + ". Quality of clustering may be degraded.");
return IdentityStemmer.INSTANCE; return IdentityStemmer.INSTANCE;
} }
@ -145,7 +145,7 @@ public class LuceneCarrot2StemmerFactory implements IStemmerFactory {
try { try {
return new SnowballStemmerAdapter(stemmerClazz.newInstance()); return new SnowballStemmerAdapter(stemmerClazz.newInstance());
} catch (Exception e) { } catch (Exception e) {
logger.warn("Could not instantiate snowball stemmer" log.warn("Could not instantiate snowball stemmer"
+ " for language: " + language.name() + " for language: " + language.name()
+ ". Quality of clustering may be degraded.", e); + ". Quality of clustering may be degraded.", e);
@ -166,7 +166,7 @@ public class LuceneCarrot2StemmerFactory implements IStemmerFactory {
ReflectionUtils.classForName(ArabicStemmer.class.getName(), false); ReflectionUtils.classForName(ArabicStemmer.class.getName(), false);
ReflectionUtils.classForName(ArabicNormalizer.class.getName(), false); ReflectionUtils.classForName(ArabicNormalizer.class.getName(), false);
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
logger log
.warn( .warn(
"Could not instantiate Lucene stemmer for Arabic, clustering quality " "Could not instantiate Lucene stemmer for Arabic, clustering quality "
+ "of Arabic content may be degraded. For best quality clusters, " + "of Arabic content may be degraded. For best quality clusters, "

View File

@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory;
* @lucene.experimental * @lucene.experimental
*/ */
public class LuceneCarrot2TokenizerFactory implements ITokenizerFactory { public class LuceneCarrot2TokenizerFactory implements ITokenizerFactory {
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
@Override @Override
public ITokenizer getTokenizer(LanguageCode language) { public ITokenizer getTokenizer(LanguageCode language) {
@ -78,7 +78,7 @@ public class LuceneCarrot2TokenizerFactory implements ITokenizerFactory {
ReflectionUtils.classForName( ReflectionUtils.classForName(
"org.apache.lucene.analysis.cn.smart.SentenceTokenizer", false); "org.apache.lucene.analysis.cn.smart.SentenceTokenizer", false);
} catch (Throwable e) { } catch (Throwable e) {
logger log
.warn("Could not instantiate Smart Chinese Analyzer, clustering quality " .warn("Could not instantiate Smart Chinese Analyzer, clustering quality "
+ "of Chinese content may be degraded. For best quality clusters, " + "of Chinese content may be degraded. For best quality clusters, "
+ "make sure Lucene's Smart Chinese Analyzer JAR is in the classpath"); + "make sure Lucene's Smart Chinese Analyzer JAR is in the classpath");