Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-1817: Warn that file formats for smartcn might change in the future, and do not encourage custom dictionary use in the meantime

Robert Muir5d05bbfd59d0
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/SmartChineseAnalyzer.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/SmartChineseAnalyzer.java
index 94bed746775..2b096218429 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/SmartChineseAnalyzer.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/SmartChineseAnalyzer.java
@@ -50,27 +50,9 @@ import org.apache.lucene.analysis.cn.smart.WordTokenFilter;
* The included dictionary data is from <a href="http://www.ictclas.org">ICTCLAS1.0</a>.
* Thanks to ICTCLAS for their hard work, and for contributing the data under the Apache 2 License!
* </p>
- * <p>
- * In special circumstances a user may wish to configure SmartChineseAnalyzer with a custom data directory location, containing bigramdict.dct and coredict.dct
- * </p>
- * The following order is used to determine the location of the data directory:
- *
- * <ol>
- * <li>System property: -Danalysis.data.dir=/path/to/analysis-data</li>
- * <li>Relative path: analysis-data</li>
- * <li>Relative path: lib/analysis-data</li>
- * <li>Property file: analysis.data.dir property from relative path analysis.properties</li>
- * <li>Property file: analysis.data.dir property from relative path lib/analysis.properties</li>
- * </ol>
- *
- * Example property file:
- *
- * <pre>
- * analysis.data.dir=D:/path/to/analysis-data/
- * </pre>
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/package.html b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/package.html
index f55b42ddf30..d9d596f1fca 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/package.html
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/package.html
@@ -26,7 +26,7 @@ Analyzer for Simplified Chinese, which indexes words.
<div>
<font color="#FF0000">
WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental. The APIs
-introduced here might change in the future and will not be supported anymore
+and file formats introduced here might change in the future and will not be supported anymore
in such a case.
</font>
</div>
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/AnalyzerProfile.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/AnalyzerProfile.java
index abaddcbe59e..bd2fe299b05 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/AnalyzerProfile.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/AnalyzerProfile.java
@@ -27,28 +27,9 @@ import java.util.Properties;
* <p>
* SmartChineseAnalyzer has a built-in dictionary and stopword list out-of-box.
* </p>
- * <p>
- * In special circumstances a user may wish to configure SmartChineseAnalyzer with a custom data directory location.
- * </p>
- * AnalyzerProfile is used to determine the location of the data directory containing bigramdict.dct and coredict.dct.
- * The following order is used to determine the location of the data directory:
- *
- * <ol>
- * <li>System property: -Danalysis.data.dir=/path/to/analysis-data</li>
- * <li>Relative path: analysis-data</li>
- * <li>Relative path: lib/analysis-data</li>
- * <li>Property file: analysis.data.dir property from relative path analysis.properties</li>
- * <li>Property file: analysis.data.dir property from relative path lib/analysis.properties</li>
- * </ol>
- *
- * Example property file:
- *
- * <pre>
- * analysis.data.dir=D:/path/to/analysis-data/
- * </pre>
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/CharType.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/CharType.java
index ad949c21a64..539509fe132 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/CharType.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/CharType.java
@@ -21,7 +21,7 @@ package org.apache.lucene.analysis.cn.smart;
* Internal SmartChineseAnalyzer character type constants.
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/SentenceTokenizer.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/SentenceTokenizer.java
index 694a9633172..0c41842cd7d 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/SentenceTokenizer.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/SentenceTokenizer.java
@@ -33,7 +33,7 @@ import org.apache.lucene.util.AttributeSource;
* </p>
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/Utility.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/Utility.java
index 00fa1d0e8a6..36e73a14044 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/Utility.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/Utility.java
@@ -23,7 +23,7 @@ import org.apache.lucene.analysis.cn.smart.hhmm.SegTokenFilter; // for javadoc
* SmartChineseAnalyzer utility constants and methods
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordSegmenter.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordSegmenter.java
index 1f7dc8ff8cc..04378b1d618 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordSegmenter.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordSegmenter.java
@@ -28,7 +28,7 @@ import org.apache.lucene.analysis.cn.smart.hhmm.SegTokenFilter;
* Segment a sentence of Chinese text into words.
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordTokenFilter.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordTokenFilter.java
index ca9e4c5948f..17b975711e7 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordTokenFilter.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordTokenFilter.java
@@ -32,7 +32,7 @@ import org.apache.lucene.analysis.tokenattributes.TypeAttribute;
* A {@link TokenFilter} that breaks sentences into words.
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordType.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordType.java
index fcc48fb153a..8878ac58cf3 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordType.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/WordType.java
@@ -21,7 +21,7 @@ package org.apache.lucene.analysis.cn.smart;
* Internal SmartChineseAnalyzer token type constants
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/AbstractDictionary.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/AbstractDictionary.java
index 81306396101..6ccebc1a1f4 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/AbstractDictionary.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/AbstractDictionary.java
@@ -28,7 +28,7 @@ import java.io.UnsupportedEncodingException;
* </p>
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BiSegGraph.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BiSegGraph.java
index 6f93f30d316..e4816278f2c 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BiSegGraph.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BiSegGraph.java
@@ -33,7 +33,7 @@ import org.apache.lucene.analysis.cn.smart.Utility;
* </p>
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java
index 97cfd0daef6..13f856957fa 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java
@@ -36,7 +36,7 @@ import org.apache.lucene.analysis.cn.smart.AnalyzerProfile;
* SmartChineseAnalyzer Bigram dictionary.
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/HHMMSegmenter.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/HHMMSegmenter.java
index b60abfa7ae0..8e729caaf53 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/HHMMSegmenter.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/HHMMSegmenter.java
@@ -28,7 +28,7 @@ import org.apache.lucene.analysis.cn.smart.hhmm.PathNode;//javadoc @link
* Finds the optimal segmentation of a sentence into Chinese words
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/PathNode.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/PathNode.java
index 38e200cf8ac..6e18279cfb6 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/PathNode.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/PathNode.java
@@ -24,7 +24,7 @@ package org.apache.lucene.analysis.cn.smart.hhmm;
* </p>
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegGraph.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegGraph.java
index c4c18e523fb..45f868fd0eb 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegGraph.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegGraph.java
@@ -30,7 +30,7 @@ import java.util.Map;
* </p>
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java
index 6004604d49a..9bc9427b27a 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegToken.java
@@ -25,7 +25,7 @@ import org.apache.lucene.analysis.cn.smart.WordType; // for javadocs
* SmartChineseAnalyzer internal token
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegTokenFilter.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegTokenFilter.java
index 563a2aa9fe6..f9ac9d50c9b 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegTokenFilter.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegTokenFilter.java
@@ -27,7 +27,7 @@ import org.apache.lucene.analysis.cn.smart.WordType;
* </p>
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegTokenPair.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegTokenPair.java
index dda1dd5ed5e..6a8e3aa31ab 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegTokenPair.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/SegTokenPair.java
@@ -23,7 +23,7 @@ import java.util.Arrays;
* A pair of tokens in {@link SegGraph}
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java
index 4618212487a..073df06573a 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java
@@ -38,7 +38,7 @@ import org.apache.lucene.analysis.cn.smart.Utility;
*
* <p><font color="#FF0000">
* WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
+ * The APIs and file formats introduced here might change in the future and will not be
* supported anymore in such a case.</font>
* </p>
*/
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/package.html b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/package.html
index 160f01aae2a..af7df0edb57 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/package.html
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/package.html
@@ -23,7 +23,7 @@ SmartChineseAnalyzer Hidden Markov Model package
<div>
<font color="#FF0000">
WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental. The APIs
-introduced here might change in the future and will not be supported anymore
+and file formats introduced here might change in the future and will not be supported anymore
in such a case.
</font>
</div>
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/package.html b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/package.html
index e5c91692a0c..7a22c9cac45 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/package.html
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/package.html
@@ -23,7 +23,7 @@ SmartChineseAnalyzer Tokenizers and TokenFilters
<div>
<font color="#FF0000">
WARNING: The status of the analyzers/smartcn <b>analysis.cn</b> package is experimental. The APIs
-introduced here might change in the future and will not be supported anymore
+and file formats introduced here might change in the future and will not be supported anymore
in such a case.
</font>
</div>