You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2018/05/22 19:59:09 UTC
[32/50] [abbrv] lucene-solr:jira/solr-11779: SOLR-12372:
contrib/clustering (private) logger rename
SOLR-12372: contrib/clustering (private) logger rename
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/4da0d689
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4da0d689
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4da0d689
Branch: refs/heads/jira/solr-11779
Commit: 4da0d689812792cfb948e5bfcf8efceb9fcc8335
Parents: 0e142662
Author: Christine Poerschke <cp...@apache.org>
Authored: Fri May 18 20:00:49 2018 +0100
Committer: Christine Poerschke <cp...@apache.org>
Committed: Fri May 18 20:00:49 2018 +0100
----------------------------------------------------------------------
.../clustering/carrot2/LuceneCarrot2StemmerFactory.java | 8 ++++----
.../clustering/carrot2/LuceneCarrot2TokenizerFactory.java | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4da0d689/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2StemmerFactory.java
----------------------------------------------------------------------
diff --git a/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2StemmerFactory.java b/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2StemmerFactory.java
index 5013e42..4065e41 100644
--- a/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2StemmerFactory.java
+++ b/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2StemmerFactory.java
@@ -54,7 +54,7 @@ import org.tartarus.snowball.ext.TurkishStemmer;
* @lucene.experimental
*/
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
public IStemmer getStemmer(LanguageCode language) {
@@ -137,7 +137,7 @@ public class LuceneCarrot2StemmerFactory implements IStemmerFactory {
.get(language);
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.");
return IdentityStemmer.INSTANCE;
}
@@ -145,7 +145,7 @@ public class LuceneCarrot2StemmerFactory implements IStemmerFactory {
try {
return new SnowballStemmerAdapter(stemmerClazz.newInstance());
} catch (Exception e) {
- logger.warn("Could not instantiate snowball stemmer"
+ log.warn("Could not instantiate snowball stemmer"
+ " for language: " + language.name()
+ ". Quality of clustering may be degraded.", e);
@@ -166,7 +166,7 @@ public class LuceneCarrot2StemmerFactory implements IStemmerFactory {
ReflectionUtils.classForName(ArabicStemmer.class.getName(), false);
ReflectionUtils.classForName(ArabicNormalizer.class.getName(), false);
} catch (ClassNotFoundException e) {
- logger
+ log
.warn(
"Could not instantiate Lucene stemmer for Arabic, clustering quality "
+ "of Arabic content may be degraded. For best quality clusters, "
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4da0d689/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2TokenizerFactory.java
----------------------------------------------------------------------
diff --git a/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2TokenizerFactory.java b/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2TokenizerFactory.java
index 0ee153b..b710c02 100644
--- a/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2TokenizerFactory.java
+++ b/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/carrot2/LuceneCarrot2TokenizerFactory.java
@@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory;
* @lucene.experimental
*/
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
public ITokenizer getTokenizer(LanguageCode language) {
@@ -78,7 +78,7 @@ public class LuceneCarrot2TokenizerFactory implements ITokenizerFactory {
ReflectionUtils.classForName(
"org.apache.lucene.analysis.cn.smart.SentenceTokenizer", false);
} catch (Throwable e) {
- logger
+ log
.warn("Could not instantiate Smart Chinese Analyzer, clustering quality "
+ "of Chinese content may be degraded. For best quality clusters, "
+ "make sure Lucene's Smart Chinese Analyzer JAR is in the classpath");