Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-2209: add @lucene.internal/@lucene.experimental javadoc tags

Robert Muir39b9f97cd414
diff --git a/common-build.xml b/common-build.xml
index 896b0f83414..0cb974df21f 100644
--- a/common-build.xml
+++ b/common-build.xml
@@ -633,8 +633,10 @@
doctitle="@{title}"
maxmemory="${javadoc.maxmemory}"
bottom="Copyright © ${year} Apache Software Foundation. All Rights Reserved.">
- <tag name="todo" description="To Do:"/>
- <tag name="uml.property" description="UML Property:"/>
+ <tag name="lucene.experimental"
+ description="WARNING: This API is experimental and might change in incompatible ways in the next release."/>
+ <tag name="lucene.internal"
+ description="NOTE: This API is for Lucene internal purposes only and might change in incompatible ways in the next release."/>
<link offline="true" packagelistLoc="${javadoc.dir}"/>
<sources />
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 a3239110744..7612da1fb32 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,12 +27,7 @@ import java.util.Properties;
* <p>
* SmartChineseAnalyzer has a built-in dictionary and stopword list out-of-box.
* </p>
- * <p><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
- *
+ * @lucene.experimental
*/
public class AnalyzerProfile {
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 e9c237ce4ac..53c74b5b2f1 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
@@ -19,11 +19,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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public class CharType {
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 92ebd888a35..3d79a3f3ed3 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
@@ -31,11 +31,7 @@ import org.apache.lucene.util.AttributeSource;
* <p>
* The output tokens can then be broken into words with {@link WordTokenFilter}
* </p>
- * <p><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public final class SentenceTokenizer extends Tokenizer {
diff --git a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/SmartChineseAnalyzer.java b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/SmartChineseAnalyzer.java
index 135a132526d..bd8e00e4161 100644
--- a/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/SmartChineseAnalyzer.java
+++ b/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/SmartChineseAnalyzer.java
@@ -52,11 +52,7 @@ import org.apache.lucene.util.Version;
* 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><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public final class SmartChineseAnalyzer extends Analyzer {
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 c9147f65041..3e6d7268e48 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
@@ -21,11 +21,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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public class Utility {
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 3fb68b5d1c7..7a557f732c6 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
@@ -26,11 +26,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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
class WordSegmenter {
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 501d92acb2f..6999b0a2e60 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
@@ -30,11 +30,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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public final class WordTokenFilter extends TokenFilter {
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 e1b12fcb411..f81add10c8e 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
@@ -19,11 +19,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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public class WordType {
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 729829facf8..7e616a41a18 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
@@ -26,11 +26,7 @@ import java.io.UnsupportedEncodingException;
* <p>
* Contains methods for dealing with GB2312 encoding.
* </p>
- * <p><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
abstract class AbstractDictionary {
/**
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 be90a632fc9..9dd83e91b19 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
@@ -30,11 +30,7 @@ import org.apache.lucene.analysis.cn.smart.Utility;
* <p>
* For each start offset, a list of possible token pairs is stored.
* </p>
- * <p><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
class BiSegGraph {
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 5a1ea00874c..836830e19bf 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
@@ -34,11 +34,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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
class BigramDictionary extends AbstractDictionary {
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 3bdd4831316..6e74d1cd8f9 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
@@ -26,11 +26,7 @@ import org.apache.lucene.analysis.cn.smart.hhmm.SegToken;//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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public class HHMMSegmenter {
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 043235f1878..1909cd89f72 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
@@ -22,11 +22,7 @@ package org.apache.lucene.analysis.cn.smart.hhmm;
* <p>
* Used by {@link BiSegGraph} to maximize the segmentation with the Viterbi algorithm.
* </p>
- * <p><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
class PathNode implements Comparable<PathNode> {
public double weight;
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 45ea90077f5..5434fe4aa73 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
@@ -27,11 +27,7 @@ import java.util.Map;
* <p>
* For each start offset, a list of possible tokens is stored.
* </p>
- * <p><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
class SegGraph {
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 68013bef525..95aacd1ea25 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
@@ -23,11 +23,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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public class SegToken {
/**
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 ca8f766c547..1733cabe618 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
@@ -25,11 +25,7 @@ import org.apache.lucene.analysis.cn.smart.WordType;
* Filters a {@link SegToken} by converting full-width latin to half-width, then lowercasing latin.
* Additionally, all punctuation is converted into {@link Utility#COMMON_DELIMITER}
* </p>
- * <p><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
public class SegTokenFilter {
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 f9e24b7008a..b63c3b29146 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
@@ -21,11 +21,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.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
class SegTokenPair {
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 dc3f558920d..19049d48033 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
@@ -35,12 +35,7 @@ import org.apache.lucene.analysis.cn.smart.Utility;
/**
* SmartChineseAnalyzer Word Dictionary
- *
- * <p><font color="#FF0000">
- * WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental.
- * The APIs and file formats introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
- * </p>
+ * @lucene.experimental
*/
class WordDictionary extends AbstractDictionary {
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 f49a30f4bcd..fcd6f463d78 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,11 +23,7 @@
SmartChineseAnalyzer Hidden Markov Model package.
</div>
<div>
-<font color="#FF0000">
-WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental. The APIs
-and file formats introduced here might change in the future and will not be supported anymore
-in such a case.
-</font>
</div>
</body>
</html>
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 86cc8d57131..31ea96e951a 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
@@ -24,11 +24,7 @@
Analyzer for Simplified Chinese, which indexes words.
</div>
<div>
-<font color="#FF0000">
-WARNING: The status of the analyzers/smartcn <b>analysis.cn.smart</b> package is experimental. The APIs
-and file formats introduced here might change in the future and will not be supported anymore
-in such a case.
-</font>
</div>
<div>
Three analyzers are provided for Chinese, each of which treats Chinese text in a different way.
diff --git a/contrib/ant/src/java/org/apache/lucene/ant/TextDocument.java b/contrib/ant/src/java/org/apache/lucene/ant/TextDocument.java
index 07269ea659b..26146adaec1 100644
--- a/contrib/ant/src/java/org/apache/lucene/ant/TextDocument.java
+++ b/contrib/ant/src/java/org/apache/lucene/ant/TextDocument.java
@@ -89,7 +89,7 @@ public class TextDocument {
/**
*@return The contents value
- *@todo finish this method
+ *TODO: finish this method
*/
public String getContents() {
return contents;
diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/NearRealtimeReaderTask.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/NearRealtimeReaderTask.java
index dde76f7fc97..48af64728c7 100644
--- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/NearRealtimeReaderTask.java
+++ b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/NearRealtimeReaderTask.java
@@ -29,8 +29,7 @@ import org.apache.lucene.util.ArrayUtil;
* single query (body: 1) sorted by docdate, and prints
* time to reopen and time to run the search.
*
- * <b>NOTE</b>: this is very experimental at this point, and
- * subject to change. It's also not generally usable, eg
+ * @lucene.experimental It's also not generally usable, eg
* you cannot change which query is executed.
*/
public class NearRealtimeReaderTask extends PerfTask {
diff --git a/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java b/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java
index 63b2fa8b961..797dab3cdd3 100644
--- a/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java
+++ b/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java
@@ -43,7 +43,7 @@ import org.apache.lucene.util.BitVector;
* results up to a 100 times faster than the file-centric RAMDirectory
* at the cost of greater RAM consumption.
* <p>
- * WARNING: This contrib is experimental and the APIs may change without warning.
+ * @lucene.experimental
* <p>
* There are no read and write locks in this store.
* {@link InstantiatedIndexReader} {@link InstantiatedIndexReader#isCurrent()} all the time
diff --git a/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/package.html b/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/package.html
index 174f39415b0..c5422ed33e9 100644
--- a/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/package.html
+++ b/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/package.html
@@ -22,7 +22,7 @@
<body>
<p>InstantiatedIndex, alternative RAM store for small corpora.</p>
-<p>WARNING: This contrib is experimental and the APIs may change without warning.</p>
+<p>@lucene.experimental</p>
<h2>Abstract</h2>
<p>
diff --git a/contrib/misc/src/java/org/apache/lucene/index/IndexSplitter.java b/contrib/misc/src/java/org/apache/lucene/index/IndexSplitter.java
index 4af0e4a5190..5641a74761c 100644
--- a/contrib/misc/src/java/org/apache/lucene/index/IndexSplitter.java
+++ b/contrib/misc/src/java/org/apache/lucene/index/IndexSplitter.java
@@ -41,8 +41,7 @@ import org.apache.lucene.store.FSDirectory;
* File{In,Out}putStream) so it will not work with non
* FSDirectory Directory impls.</p>
*
- * <p><b>NOTE</b>: The tool is experimental and might change
- * in incompatible ways in the next release. You can easily
+ * @lucene.experimental You can easily
* accidentally remove segments from your index so be
* careful!
*/
diff --git a/contrib/wikipedia/src/java/org/apache/lucene/wikipedia/analysis/WikipediaTokenizer.java b/contrib/wikipedia/src/java/org/apache/lucene/wikipedia/analysis/WikipediaTokenizer.java
index 2e6c85627d1..7c1760bac77 100644
--- a/contrib/wikipedia/src/java/org/apache/lucene/wikipedia/analysis/WikipediaTokenizer.java
+++ b/contrib/wikipedia/src/java/org/apache/lucene/wikipedia/analysis/WikipediaTokenizer.java
@@ -36,8 +36,7 @@ import java.util.*;
* Wikipedia tutorial available at http://en.wikipedia.org/wiki/Wikipedia:Tutorial, but it may not be complete.
* <p/>
* <p/>
- * EXPERIMENTAL !!!!!!!!!
- * NOTE: This Tokenizer is considered experimental and the grammar is subject to change in the trunk and in follow up releases.
+ * @lucene.experimental
*/
public final class WikipediaTokenizer extends Tokenizer {
public static final String INTERNAL_LINK = "il";
diff --git a/src/java/org/apache/lucene/analysis/NumericTokenStream.java b/src/java/org/apache/lucene/analysis/NumericTokenStream.java
index 86138cd1499..20781247f32 100644
--- a/src/java/org/apache/lucene/analysis/NumericTokenStream.java
+++ b/src/java/org/apache/lucene/analysis/NumericTokenStream.java
@@ -82,8 +82,7 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
* href="../search/NumericRangeQuery.html#precisionStepDesc"><code>precisionStep</code></a>
* parameter as well as how numeric fields work under the hood.</p>
*
- * <p><font color="red"><b>NOTE:</b> This API is experimental and
- * might change in incompatible ways in the next release.</font>
+ * @lucene.experimental
*
* @since 2.9
*/
diff --git a/src/java/org/apache/lucene/analysis/Token.java b/src/java/org/apache/lucene/analysis/Token.java
index d51fdd851c6..bf2d07ebeba 100644
--- a/src/java/org/apache/lucene/analysis/Token.java
+++ b/src/java/org/apache/lucene/analysis/Token.java
@@ -454,14 +454,14 @@ public class Token extends AttributeImpl
}
/**
- * EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long.
* <p/>
*
* Get the bitset for any bits that have been set. This is completely distinct from {@link #type()}, although they do share similar purposes.
* The flags can be used to encode information about the token for use by other {@link org.apache.lucene.analysis.TokenFilter}s.
*
- *
+ *
* @return The bits
+ * @lucene.experimental While we think this is here to stay, we may want to change it to be a long.
*/
public int getFlags() {
return flags;
diff --git a/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttribute.java b/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttribute.java
index 9d19bb55822..14c317f6098 100644
--- a/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttribute.java
+++ b/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttribute.java
@@ -23,10 +23,10 @@ import org.apache.lucene.util.Attribute;
/**
* This attribute can be used to pass different flags down the {@link Tokenizer} chain,
* eg from one TokenFilter to another one.
+ * @lucene.experimental While we think this is here to stay, we may want to change it to be a long.
*/
public interface FlagsAttribute extends Attribute {
/**
- * EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long.
* <p/>
*
* Get the bitset for any bits that have been set. This is completely distinct from {@link TypeAttribute#type()}, although they do share similar purposes.
diff --git a/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttributeImpl.java b/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttributeImpl.java
index b0f002c963d..986864a3470 100644
--- a/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttributeImpl.java
+++ b/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttributeImpl.java
@@ -24,12 +24,12 @@ import org.apache.lucene.util.AttributeImpl;
/**
* This attribute can be used to pass different flags down the tokenizer chain,
* eg from one TokenFilter to another one.
+ * @lucene.experimental While we think this is here to stay, we may want to change it to be a long.
*/
public class FlagsAttributeImpl extends AttributeImpl implements FlagsAttribute, Cloneable, Serializable {
private int flags = 0;
/**
- * EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long.
* <p/>
*
* Get the bitset for any bits that have been set. This is completely distinct from {@link TypeAttribute#type()}, although they do share similar purposes.
diff --git a/src/java/org/apache/lucene/document/NumericField.java b/src/java/org/apache/lucene/document/NumericField.java
index 67530ebdd48..a0c4e64d303 100644
--- a/src/java/org/apache/lucene/document/NumericField.java
+++ b/src/java/org/apache/lucene/document/NumericField.java
@@ -134,9 +134,7 @@ import org.apache.lucene.search.FieldCache; // javadocs
* values are returned as {@link String}s (according to
* <code>toString(value)</code> of the used data type).
*
- * <p><font color="red"><b>NOTE:</b> This API is
- * experimental and might change in incompatible ways in the
- * next release.</font>
+ * @lucene.experimental
*
* @since 2.9
*/
diff --git a/src/java/org/apache/lucene/index/CheckIndex.java b/src/java/org/apache/lucene/index/CheckIndex.java
index 5885d82cde1..e3b4d25f42c 100644
--- a/src/java/org/apache/lucene/index/CheckIndex.java
+++ b/src/java/org/apache/lucene/index/CheckIndex.java
@@ -41,9 +41,7 @@ import java.util.Map;
* <p>As this tool checks every byte in the index, on a large
* index it can take quite a long time to run.
*
- * <p><b>WARNING</b>: this tool and API is new and
- * experimental and is subject to suddenly change in the
- * next release. Please make a complete backup of your
+ * @lucene.experimental Please make a complete backup of your
* index before using this to fix your index!
*/
public class CheckIndex {
@@ -54,8 +52,7 @@ public class CheckIndex {
/**
* Returned from {@link #checkIndex()} detailing the health and status of the index.
*
- * <p><b>WARNING</b>: this API is new and experimental and is
- * subject to suddenly change in the next release.
+ * @lucene.experimental
**/
public static class Status {
diff --git a/src/java/org/apache/lucene/index/DirectoryReader.java b/src/java/org/apache/lucene/index/DirectoryReader.java
index 14935944be3..484be46bc5d 100644
--- a/src/java/org/apache/lucene/index/DirectoryReader.java
+++ b/src/java/org/apache/lucene/index/DirectoryReader.java
@@ -925,7 +925,7 @@ class DirectoryReader extends IndexReader implements Cloneable {
/**
* Expert: return the IndexCommit that this reader has opened.
* <p/>
- * <p><b>WARNING</b>: this API is new and experimental and may suddenly change.</p>
+ * @lucene.experimental
*/
@Override
public IndexCommit getIndexCommit() throws IOException {
diff --git a/src/java/org/apache/lucene/index/FieldInvertState.java b/src/java/org/apache/lucene/index/FieldInvertState.java
index 26ee64716c2..9dc9ffcc8b4 100644
--- a/src/java/org/apache/lucene/index/FieldInvertState.java
+++ b/src/java/org/apache/lucene/index/FieldInvertState.java
@@ -23,8 +23,7 @@ import org.apache.lucene.util.AttributeSource;
* being added to the index. The information collected in this class is
* also used to calculate the normalization factor for a field.
*
- * <p><b>WARNING</b>: This API is new and experimental, and may suddenly
- * change.</p>
+ * @lucene.experimental
*/
public final class FieldInvertState {
int position;
diff --git a/src/java/org/apache/lucene/index/FormatPostingsDocsConsumer.java b/src/java/org/apache/lucene/index/FormatPostingsDocsConsumer.java
index c67b456556e..03a6e95dd9e 100644
--- a/src/java/org/apache/lucene/index/FormatPostingsDocsConsumer.java
+++ b/src/java/org/apache/lucene/index/FormatPostingsDocsConsumer.java
@@ -20,7 +20,7 @@ package org.apache.lucene.index;
import java.io.IOException;
/**
- * NOTE: this API is experimental and will likely change
+ * @lucene.experimental
*/
abstract class FormatPostingsDocsConsumer {
diff --git a/src/java/org/apache/lucene/index/FormatPostingsFieldsConsumer.java b/src/java/org/apache/lucene/index/FormatPostingsFieldsConsumer.java
index e48ba5cfb97..8118bc1baa9 100644
--- a/src/java/org/apache/lucene/index/FormatPostingsFieldsConsumer.java
+++ b/src/java/org/apache/lucene/index/FormatPostingsFieldsConsumer.java
@@ -24,7 +24,7 @@ import java.io.IOException;
* actually do "something" with the postings (write it into
* the index in a specific format).
*
- * NOTE: this API is experimental and will likely change
+ * @lucene.experimental
*/
abstract class FormatPostingsFieldsConsumer {
diff --git a/src/java/org/apache/lucene/index/FormatPostingsTermsConsumer.java b/src/java/org/apache/lucene/index/FormatPostingsTermsConsumer.java
index d220e15b102..dfc85ae3144 100644
--- a/src/java/org/apache/lucene/index/FormatPostingsTermsConsumer.java
+++ b/src/java/org/apache/lucene/index/FormatPostingsTermsConsumer.java
@@ -23,7 +23,7 @@ import org.apache.lucene.util.ArrayUtil;
import org.apache.lucene.util.RamUsageEstimator;
/**
- * NOTE: this API is experimental and will likely change
+ * @lucene.experimental
*/
abstract class FormatPostingsTermsConsumer {
diff --git a/src/java/org/apache/lucene/index/IndexCommit.java b/src/java/org/apache/lucene/index/IndexCommit.java
index 2a1c8a16715..780b73d3878 100644
--- a/src/java/org/apache/lucene/index/IndexCommit.java
+++ b/src/java/org/apache/lucene/index/IndexCommit.java
@@ -37,8 +37,7 @@ import org.apache.lucene.store.Directory;
* associated with it. The segments file associated with a
* later index commit point would have a larger N.</p>
*
- * <p><b>WARNING</b>: This API is a new and experimental and
- * may suddenly change. </p>
+ * @lucene.experimental
*/
public abstract class IndexCommit {
diff --git a/src/java/org/apache/lucene/index/IndexReader.java b/src/java/org/apache/lucene/index/IndexReader.java
index 569a95a7282..729c3eec8f1 100644
--- a/src/java/org/apache/lucene/index/IndexReader.java
+++ b/src/java/org/apache/lucene/index/IndexReader.java
@@ -1053,8 +1053,7 @@ public abstract class IndexReader implements Cloneable,Closeable {
* readers that correspond to a Directory with its own
* segments_N file.
*
- * <p><b>WARNING</b>: this API is new and experimental and
- * may suddenly change.</p>
+ * @lucene.experimental
*/
public IndexCommit getIndexCommit() throws IOException {
throw new UnsupportedOperationException("This reader does not support this method.");
diff --git a/src/java/org/apache/lucene/index/IndexWriter.java b/src/java/org/apache/lucene/index/IndexWriter.java
index 75140a12684..17204016f79 100644
--- a/src/java/org/apache/lucene/index/IndexWriter.java
+++ b/src/java/org/apache/lucene/index/IndexWriter.java
@@ -360,8 +360,7 @@ public class IndexWriter implements Closeable {
* if you attempt to reopen any of those readers, you'll
* hit an {@link AlreadyClosedException}.</p>
*
- * <p><b>NOTE:</b> This API is experimental and might
- * change in incompatible ways in the next release.</p>
+ * @lucene.experimental
*
* @return IndexReader that covers entire index plus all
* changes made so far by this IndexWriter instance
@@ -4825,8 +4824,7 @@ public class IndexWriter implements Closeable {
* search, but will reduce search latency on opening a
* new near real-time reader after a merge completes.
*
- * <p><b>NOTE:</b> This API is experimental and might
- * change in incompatible ways in the next release.</p>
+ * @lucene.experimental
*
* <p><b>NOTE</b>: warm is called before any deletes have
* been carried over to the merged segment. */
diff --git a/src/java/org/apache/lucene/index/MergePolicy.java b/src/java/org/apache/lucene/index/MergePolicy.java
index bb2808999e9..5d72284eedb 100644
--- a/src/java/org/apache/lucene/index/MergePolicy.java
+++ b/src/java/org/apache/lucene/index/MergePolicy.java
@@ -51,8 +51,7 @@ import java.util.Set;
* <p>The default MergePolicy is {@link
* LogByteSizeMergePolicy}.</p>
*
- * <p><b>NOTE:</b> This API is new and still experimental
- * (subject to change suddenly in the next release)</p>
+ * @lucene.experimental
*
* <p><b>NOTE</b>: This class typically requires access to
* package-private APIs (e.g. <code>SegmentInfos</code>) to do its job;
diff --git a/src/java/org/apache/lucene/index/MergeScheduler.java b/src/java/org/apache/lucene/index/MergeScheduler.java
index 03568e09207..920dfccce37 100644
--- a/src/java/org/apache/lucene/index/MergeScheduler.java
+++ b/src/java/org/apache/lucene/index/MergeScheduler.java
@@ -24,8 +24,7 @@ import java.io.IOException;
* selected by a {@link MergePolicy}. The default
* MergeScheduler is {@link ConcurrentMergeScheduler}.</p>
*
- * <p><b>NOTE:</b> This API is new and still experimental
- * (subject to change suddenly in the next release)</p>
+ * @lucene.experimental
*
* <p><b>NOTE</b>: This class typically requires access to
* package-private APIs (eg, SegmentInfos) to do its job;
diff --git a/src/java/org/apache/lucene/index/SegmentInfo.java b/src/java/org/apache/lucene/index/SegmentInfo.java
index ccaa5f07d30..d48412a9079 100644
--- a/src/java/org/apache/lucene/index/SegmentInfo.java
+++ b/src/java/org/apache/lucene/index/SegmentInfo.java
@@ -32,8 +32,7 @@ import java.util.Collections;
* Information about a segment such as it's name, directory, and files related
* to the segment.
*
- * * <p><b>NOTE:</b> This API is new and still experimental
- * (subject to change suddenly in the next release)</p>
+ * @lucene.experimental
*/
public final class SegmentInfo {
diff --git a/src/java/org/apache/lucene/index/SegmentInfos.java b/src/java/org/apache/lucene/index/SegmentInfos.java
index 15cb2d85e59..b9b87f59231 100644
--- a/src/java/org/apache/lucene/index/SegmentInfos.java
+++ b/src/java/org/apache/lucene/index/SegmentInfos.java
@@ -40,8 +40,7 @@ import java.util.Map;
* A collection of segmentInfo objects with methods for operating on
* those segments in relation to the file system.
*
- * <p><b>NOTE:</b> This API is new and still experimental
- * (subject to change suddenly in the next release)</p>
+ * @lucene.experimental
*/
public final class SegmentInfos extends Vector<SegmentInfo> {
diff --git a/src/java/org/apache/lucene/index/SegmentReader.java b/src/java/org/apache/lucene/index/SegmentReader.java
index 68c97c7bf11..d0ce898ae26 100644
--- a/src/java/org/apache/lucene/index/SegmentReader.java
+++ b/src/java/org/apache/lucene/index/SegmentReader.java
@@ -41,8 +41,7 @@ import org.apache.lucene.util.CloseableThreadLocal;
import org.apache.lucene.search.FieldCache; // not great (circular); used only to purge FieldCache entry on close
/**
- * <p><b>NOTE:</b> This API is new and still experimental
- * (subject to change suddenly in the next release)</p>
+ * @lucene.experimental
*/
public class SegmentReader extends IndexReader implements Cloneable {
protected boolean readOnly;
diff --git a/src/java/org/apache/lucene/index/SnapshotDeletionPolicy.java b/src/java/org/apache/lucene/index/SnapshotDeletionPolicy.java
index 3a8cd2e5828..0851282f4b7 100644
--- a/src/java/org/apache/lucene/index/SnapshotDeletionPolicy.java
+++ b/src/java/org/apache/lucene/index/SnapshotDeletionPolicy.java
@@ -39,8 +39,7 @@ import org.apache.lucene.store.Directory;
* snapshot held when a writer is closed will "survive"
* when the next writer is opened.
*
- * <p><b>WARNING</b>: This API is a new and experimental and
- * may suddenly change.</p> */
+ * @lucene.experimental */
public class SnapshotDeletionPolicy implements IndexDeletionPolicy {
diff --git a/src/java/org/apache/lucene/search/Collector.java b/src/java/org/apache/lucene/search/Collector.java
index a1e748e87cd..e2514887930 100644
--- a/src/java/org/apache/lucene/search/Collector.java
+++ b/src/java/org/apache/lucene/search/Collector.java
@@ -116,8 +116,7 @@ import org.apache.lucene.index.IndexReader;
* you need that behavior, use {@link
* PositiveScoresOnlyCollector}.</p>
*
- * <p><b>NOTE:</b> This API is experimental and might change
- * in incompatible ways in the next release.</p>
+ * @lucene.experimental
*
* @since 2.9
*/
diff --git a/src/java/org/apache/lucene/search/DefaultSimilarity.java b/src/java/org/apache/lucene/search/DefaultSimilarity.java
index 6bcf4e0dae2..40b53b47c24 100644
--- a/src/java/org/apache/lucene/search/DefaultSimilarity.java
+++ b/src/java/org/apache/lucene/search/DefaultSimilarity.java
@@ -29,8 +29,7 @@ public class DefaultSimilarity extends Similarity {
* FieldInvertState#getLength()} - {@link
* FieldInvertState#getNumOverlap()}.
*
- * <p><b>WARNING</b>: This API is new and experimental, and may suddenly
- * change.</p> */
+ * @lucene.experimental */
@Override
public float computeNorm(String field, FieldInvertState state) {
final int numTerms;
@@ -85,8 +84,7 @@ public class DefaultSimilarity extends Similarity {
* norm. By default this is false, meaning overlap
* tokens are counted just like non-overlap tokens.
*
- * <p><b>WARNING</b>: This API is new and experimental, and may suddenly
- * change.</p>
+ * @lucene.experimental
*
* @see #computeNorm
*/
diff --git a/src/java/org/apache/lucene/search/FieldCache.java b/src/java/org/apache/lucene/search/FieldCache.java
index 4b2ece2b43c..acaf60bd063 100644
--- a/src/java/org/apache/lucene/search/FieldCache.java
+++ b/src/java/org/apache/lucene/search/FieldCache.java
@@ -496,12 +496,7 @@ public interface FieldCache {
/**
* EXPERT: A unique Identifier/Description for each item in the FieldCache.
* Can be useful for logging/debugging.
- * <p>
- * <b>EXPERIMENTAL API:</b> This API is considered extremely advanced
- * and experimental. It may be removed or altered w/o warning in future
- * releases
- * of Lucene.
- * </p>
+ * @lucene.experimental
*/
public static abstract class CacheEntry {
public abstract Object getReaderKey();
@@ -566,12 +561,7 @@ public interface FieldCache {
* associated with it has garbage collected will prevent the Value itself
* from being garbage collected when the Cache drops the WeakReference.
* </p>
- * <p>
- * <b>EXPERIMENTAL API:</b> This API is considered extremely advanced
- * and experimental. It may be removed or altered w/o warning in future
- * releases
- * of Lucene.
- * </p>
+ * @lucene.experimental
*/
public abstract CacheEntry[] getCacheEntries();
@@ -584,12 +574,7 @@ public interface FieldCache {
* It should not be relied on for "Cache maintenance" in general
* application code.
* </p>
- * <p>
- * <b>EXPERIMENTAL API:</b> This API is considered extremely advanced
- * and experimental. It may be removed or altered w/o warning in future
- * releases
- * of Lucene.
- * </p>
+ * @lucene.experimental
*/
public abstract void purgeAllCaches();
diff --git a/src/java/org/apache/lucene/search/FieldComparator.java b/src/java/org/apache/lucene/search/FieldComparator.java
index 880f4f34fc1..0f7544cb782 100644
--- a/src/java/org/apache/lucene/search/FieldComparator.java
+++ b/src/java/org/apache/lucene/search/FieldComparator.java
@@ -79,8 +79,7 @@ import org.apache.lucene.search.FieldCache.StringIndex;
* FieldDoc#fields} when returning the top results.
* </ul>
*
- * <b>NOTE:</b> This API is experimental and might change in
- * incompatible ways in the next release.
+ * @lucene.experimental
*/
public abstract class FieldComparator {
diff --git a/src/java/org/apache/lucene/search/FieldComparatorSource.java b/src/java/org/apache/lucene/search/FieldComparatorSource.java
index ccd6cfd09c2..a0613afb73b 100644
--- a/src/java/org/apache/lucene/search/FieldComparatorSource.java
+++ b/src/java/org/apache/lucene/search/FieldComparatorSource.java
@@ -23,8 +23,7 @@ import java.io.Serializable;
/**
* Provides a {@link FieldComparator} for custom field sorting.
*
- * <b>NOTE:</b> This API is experimental and might change in
- * incompatible ways in the next release.
+ * @lucene.experimental
*
*/
public abstract class FieldComparatorSource implements Serializable {
diff --git a/src/java/org/apache/lucene/search/FieldValueHitQueue.java b/src/java/org/apache/lucene/search/FieldValueHitQueue.java
index f724c0aa5ae..e3a0293b2fe 100644
--- a/src/java/org/apache/lucene/search/FieldValueHitQueue.java
+++ b/src/java/org/apache/lucene/search/FieldValueHitQueue.java
@@ -26,9 +26,7 @@ import org.apache.lucene.util.PriorityQueue;
* Uses <code>FieldCache.DEFAULT</code> for maintaining
* internal term lookup tables.
*
- * <b>NOTE:</b> This API is experimental and might change in
- * incompatible ways in the next release.
- *
+ * @lucene.experimental
* @since 2.9
* @see Searcher#search(Query,Filter,int,Sort)
* @see FieldCache
diff --git a/src/java/org/apache/lucene/search/IndexSearcher.java b/src/java/org/apache/lucene/search/IndexSearcher.java
index 11b83abcb29..59df2d47d47 100644
--- a/src/java/org/apache/lucene/search/IndexSearcher.java
+++ b/src/java/org/apache/lucene/search/IndexSearcher.java
@@ -86,9 +86,7 @@ public class IndexSearcher extends Searcher {
/** Expert: directly specify the reader, subReaders and
* their docID starts.
*
- * <p><b>NOTE:</b> This API is experimental and
- * might change in incompatible ways in the next
- * release.</font></p> */
+ * @lucene.experimental */
public IndexSearcher(IndexReader reader, IndexReader[] subReaders, int[] docStarts) {
this.reader = reader;
this.subReaders = subReaders;
diff --git a/src/java/org/apache/lucene/search/NumericRangeFilter.java b/src/java/org/apache/lucene/search/NumericRangeFilter.java
index da42bfc0aa3..b5a971df489 100644
--- a/src/java/org/apache/lucene/search/NumericRangeFilter.java
+++ b/src/java/org/apache/lucene/search/NumericRangeFilter.java
@@ -39,9 +39,7 @@ import org.apache.lucene.util.NumericUtils; // for javadocs
* See {@link NumericRangeQuery} for details on how Lucene
* indexes and searches numeric valued fields.
*
- * <p><font color="red"><b>NOTE:</b> This API is experimental and
- * might change in incompatible ways in the next
- * release.</font>
+ * @lucene.experimental
*
* @since 2.9
**/
diff --git a/src/java/org/apache/lucene/search/NumericRangeQuery.java b/src/java/org/apache/lucene/search/NumericRangeQuery.java
index 2eed955336c..ef72172b62e 100644
--- a/src/java/org/apache/lucene/search/NumericRangeQuery.java
+++ b/src/java/org/apache/lucene/search/NumericRangeQuery.java
@@ -75,8 +75,7 @@ import org.apache.lucene.index.TermEnum;
* BooleanQuery rewrite methods without changing
* BooleanQuery's default max clause count.
*
- * <p><font color="red"><b>NOTE:</b> This API is experimental and
- * might change in incompatible ways in the next release.</font>
+ * @lucene.experimental
*
* <br><h3>How it works</h3>
*
diff --git a/src/java/org/apache/lucene/search/Similarity.java b/src/java/org/apache/lucene/search/Similarity.java
index f2195e8f269..a48cd8e80b9 100644
--- a/src/java/org/apache/lucene/search/Similarity.java
+++ b/src/java/org/apache/lucene/search/Similarity.java
@@ -602,8 +602,7 @@ public abstract class Similarity implements Serializable {
* {@link FieldInvertState#getLength()} as the second argument, and
* then multiplies this value by {@link FieldInvertState#getBoost()}.</p>
*
- * <p><b>WARNING</b>: This API is new and experimental and may
- * suddenly change.</p>
+ * @lucene.experimental
*
* @param field field name
* @param state current processing state for this field
diff --git a/src/java/org/apache/lucene/search/SortField.java b/src/java/org/apache/lucene/search/SortField.java
index fc0c023f63c..3144958a467 100644
--- a/src/java/org/apache/lucene/search/SortField.java
+++ b/src/java/org/apache/lucene/search/SortField.java
@@ -365,8 +365,7 @@ implements Serializable {
/** Returns the {@link FieldComparator} to use for
* sorting.
*
- * <b>NOTE:</b> This API is experimental and might change in
- * incompatible ways in the next release.
+ * @lucene.experimental
*
* @param numHits number of top hits the queue will store
* @param sortPos position of this SortField within {@link
diff --git a/src/java/org/apache/lucene/search/SpanFilterResult.java b/src/java/org/apache/lucene/search/SpanFilterResult.java
index 48fa1012cb0..f07d77a3a9a 100644
--- a/src/java/org/apache/lucene/search/SpanFilterResult.java
+++ b/src/java/org/apache/lucene/search/SpanFilterResult.java
@@ -23,8 +23,7 @@ import java.util.List;
/**
* The results of a SpanQueryFilter. Wraps the BitSet and the position information from the SpanQuery
*
- *<p/>
- * NOTE: This API is still experimental and subject to change.
+ * @lucene.experimental
*
**/
public class SpanFilterResult {
diff --git a/src/java/org/apache/lucene/search/TopFieldCollector.java b/src/java/org/apache/lucene/search/TopFieldCollector.java
index a39567e1ca2..4154eca039c 100644
--- a/src/java/org/apache/lucene/search/TopFieldCollector.java
+++ b/src/java/org/apache/lucene/search/TopFieldCollector.java
@@ -30,8 +30,7 @@ import org.apache.lucene.util.PriorityQueue;
* See the {@link #create(org.apache.lucene.search.Sort, int, boolean, boolean, boolean, boolean)} method
* for instantiating a TopFieldCollector.
*
- * <p><b>NOTE:</b> This API is experimental and might change in
- * incompatible ways in the next release.</p>
+ * @lucene.experimental
*/
public abstract class TopFieldCollector extends TopDocsCollector<Entry> {
diff --git a/src/java/org/apache/lucene/search/function/ByteFieldSource.java b/src/java/org/apache/lucene/search/function/ByteFieldSource.java
index 879798bbf64..cb667b4de50 100644
--- a/src/java/org/apache/lucene/search/function/ByteFieldSource.java
+++ b/src/java/org/apache/lucene/search/function/ByteFieldSource.java
@@ -29,10 +29,7 @@ import java.io.IOException;
* using <code>getBytes()</code> and makes those values
* available as other numeric types, casting as needed.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
* @see org.apache.lucene.search.function.FieldCacheSource for requirements
* on the field.
diff --git a/src/java/org/apache/lucene/search/function/CustomScoreQuery.java b/src/java/org/apache/lucene/search/function/CustomScoreQuery.java
index 1c51cf11598..d2282bcba7b 100755
--- a/src/java/org/apache/lucene/search/function/CustomScoreQuery.java
+++ b/src/java/org/apache/lucene/search/function/CustomScoreQuery.java
@@ -42,10 +42,7 @@ import org.apache.lucene.util.ToStringUtils;
* </ol>
* Subclasses can modify the computation by overriding {@link #customScore(int, float, float)}.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*/
public class CustomScoreQuery extends Query {
diff --git a/src/java/org/apache/lucene/search/function/DocValues.java b/src/java/org/apache/lucene/search/function/DocValues.java
index 9a0f01f0298..4f28d72550b 100755
--- a/src/java/org/apache/lucene/search/function/DocValues.java
+++ b/src/java/org/apache/lucene/search/function/DocValues.java
@@ -25,10 +25,7 @@ import org.apache.lucene.search.Explanation;
* {@link org.apache.lucene.search.function.ValueSource ValueSuorce}
* for a particular field and reader.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
*
*/
diff --git a/src/java/org/apache/lucene/search/function/FieldCacheSource.java b/src/java/org/apache/lucene/search/function/FieldCacheSource.java
index 5df8841c0fe..b55ae5ff820 100644
--- a/src/java/org/apache/lucene/search/function/FieldCacheSource.java
+++ b/src/java/org/apache/lucene/search/function/FieldCacheSource.java
@@ -34,10 +34,7 @@ import org.apache.lucene.search.FieldCache;
* <p>
* Document with no tokens in this field are assigned the <code>Zero</code> value.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
* <p><b>NOTE</b>: with the switch in 2.9 to segment-based
* searching, if {@link #getValues} is invoked with a
diff --git a/src/java/org/apache/lucene/search/function/FieldScoreQuery.java b/src/java/org/apache/lucene/search/function/FieldScoreQuery.java
index 5c05c7bbb23..cd71c15b6a9 100755
--- a/src/java/org/apache/lucene/search/function/FieldScoreQuery.java
+++ b/src/java/org/apache/lucene/search/function/FieldScoreQuery.java
@@ -52,10 +52,7 @@ package org.apache.lucene.search.function;
* otherwise, for instance if for each query a new index reader is opened, large penalties would be
* paid for loading the field values into memory over and over again!
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*/
public class FieldScoreQuery extends ValueSourceQuery {
diff --git a/src/java/org/apache/lucene/search/function/FloatFieldSource.java b/src/java/org/apache/lucene/search/function/FloatFieldSource.java
index 02411044761..72d2ae397da 100644
--- a/src/java/org/apache/lucene/search/function/FloatFieldSource.java
+++ b/src/java/org/apache/lucene/search/function/FloatFieldSource.java
@@ -29,10 +29,7 @@ import java.io.IOException;
* using <code>getFloats()</code> and makes those values
* available as other numeric types, casting as needed.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
* @see org.apache.lucene.search.function.FieldCacheSource for requirements
* on the field.
diff --git a/src/java/org/apache/lucene/search/function/IntFieldSource.java b/src/java/org/apache/lucene/search/function/IntFieldSource.java
index 83d63d0f77b..a38533e0806 100755
--- a/src/java/org/apache/lucene/search/function/IntFieldSource.java
+++ b/src/java/org/apache/lucene/search/function/IntFieldSource.java
@@ -29,10 +29,7 @@ import java.io.IOException;
* using <code>getInts()</code> and makes those values
* available as other numeric types, casting as needed.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
* @see org.apache.lucene.search.function.FieldCacheSource for requirements
* on the field.
diff --git a/src/java/org/apache/lucene/search/function/OrdFieldSource.java b/src/java/org/apache/lucene/search/function/OrdFieldSource.java
index cbfd4a4a7b9..fa24facbe9f 100644
--- a/src/java/org/apache/lucene/search/function/OrdFieldSource.java
+++ b/src/java/org/apache/lucene/search/function/OrdFieldSource.java
@@ -39,10 +39,7 @@ import java.io.IOException;
* when other documents are inserted or deleted,
* or if a MultiSearcher is used.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
* <p><b>NOTE</b>: with the switch in 2.9 to segment-based
* searching, if {@link #getValues} is invoked with a
diff --git a/src/java/org/apache/lucene/search/function/ReverseOrdFieldSource.java b/src/java/org/apache/lucene/search/function/ReverseOrdFieldSource.java
index 2d9e488915a..0cf446783c9 100644
--- a/src/java/org/apache/lucene/search/function/ReverseOrdFieldSource.java
+++ b/src/java/org/apache/lucene/search/function/ReverseOrdFieldSource.java
@@ -40,10 +40,7 @@ import java.io.IOException;
* when other documents are inserted or deleted,
* or if a MultiSearcher is used.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
* <p><b>NOTE</b>: with the switch in 2.9 to segment-based
* searching, if {@link #getValues} is invoked with a
diff --git a/src/java/org/apache/lucene/search/function/ShortFieldSource.java b/src/java/org/apache/lucene/search/function/ShortFieldSource.java
index 8b10fdb9500..157bdd454aa 100644
--- a/src/java/org/apache/lucene/search/function/ShortFieldSource.java
+++ b/src/java/org/apache/lucene/search/function/ShortFieldSource.java
@@ -29,10 +29,7 @@ import java.io.IOException;
* using <code>getShorts()</code> and makes those values
* available as other numeric types, casting as needed.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
* @see org.apache.lucene.search.function.FieldCacheSource for requirements
* on the field.
diff --git a/src/java/org/apache/lucene/search/function/ValueSource.java b/src/java/org/apache/lucene/search/function/ValueSource.java
index 6d7d4bcd848..0f8c7aa1298 100755
--- a/src/java/org/apache/lucene/search/function/ValueSource.java
+++ b/src/java/org/apache/lucene/search/function/ValueSource.java
@@ -31,10 +31,7 @@ import java.io.Serializable;
* <P>ValueSource implementations differ in RAM requirements: it would always be a factor
* of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
*
*/
diff --git a/src/java/org/apache/lucene/search/function/ValueSourceQuery.java b/src/java/org/apache/lucene/search/function/ValueSourceQuery.java
index c777c3df125..82dad2d5c62 100644
--- a/src/java/org/apache/lucene/search/function/ValueSourceQuery.java
+++ b/src/java/org/apache/lucene/search/function/ValueSourceQuery.java
@@ -37,10 +37,7 @@ import java.util.Set;
* <p>
* Score is set as: Score(doc,query) = query.getBoost()<sup>2</sup> * valueSource(doc).
*
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>search.function</b> package is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*/
public class ValueSourceQuery extends Query {
ValueSource valSrc;
diff --git a/src/java/org/apache/lucene/search/function/package.html b/src/java/org/apache/lucene/search/function/package.html
index a59b51ea541..15dcbfa2cd6 100755
--- a/src/java/org/apache/lucene/search/function/package.html
+++ b/src/java/org/apache/lucene/search/function/package.html
@@ -26,11 +26,7 @@
The <code>function</code> package provides tight control over documents scores.
</DIV>
<DIV>
-<font color="#FF0000">
-WARNING: The status of the <b>search.function</b> package is experimental. The APIs
-introduced here might change in the future and will not be supported anymore
-in such a case.
-</font>
</DIV>
<DIV>
Two types of queries are available in this package:
diff --git a/src/java/org/apache/lucene/search/payloads/PayloadFunction.java b/src/java/org/apache/lucene/search/payloads/PayloadFunction.java
index 0813fdd62ca..576bafe8ccf 100644
--- a/src/java/org/apache/lucene/search/payloads/PayloadFunction.java
+++ b/src/java/org/apache/lucene/search/payloads/PayloadFunction.java
@@ -18,16 +18,15 @@ package org.apache.lucene.search.payloads;
import java.io.Serializable;
-
/**
- * An abstract class that defines a way for Payload*Query instances
- * to transform the cumulative effects of payload scores for a document.
- *
+ * An abstract class that defines a way for Payload*Query instances to transform
+ * the cumulative effects of payload scores for a document.
+ *
* @see org.apache.lucene.search.payloads.PayloadTermQuery for more information
- *
- * <p/>
- * This class and its derivations are experimental and subject to change
- *
+ *
+ * @lucene.experimental This class and its derivations are experimental and subject to
+ * change
+ *
**/
public abstract class PayloadFunction implements Serializable {
diff --git a/src/java/org/apache/lucene/search/payloads/PayloadSpanUtil.java b/src/java/org/apache/lucene/search/payloads/PayloadSpanUtil.java
index ec568a8fd09..18629e61f9e 100644
--- a/src/java/org/apache/lucene/search/payloads/PayloadSpanUtil.java
+++ b/src/java/org/apache/lucene/search/payloads/PayloadSpanUtil.java
@@ -44,11 +44,7 @@ import org.apache.lucene.search.spans.Spans;
* Operates like Highlighter - IndexReader should only contain doc of interest,
* best to use MemoryIndex.
*
- * <p/>
- * <font color="#FF0000">
- * WARNING: The status of the <b>Payloads</b> feature is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
*/
public class PayloadSpanUtil {
diff --git a/src/java/org/apache/lucene/search/spans/Spans.java b/src/java/org/apache/lucene/search/spans/Spans.java
index 184d344742c..04c38e63cbf 100644
--- a/src/java/org/apache/lucene/search/spans/Spans.java
+++ b/src/java/org/apache/lucene/search/spans/Spans.java
@@ -66,10 +66,7 @@ public abstract class Spans {
* <br>
* Note that the return type is a collection, thus the ordering should not be relied upon.
* <br/>
- * <p><font color="#FF0000">
- * WARNING: The status of the <b>Payloads</b> feature is experimental.
- * The APIs introduced here might change in the future and will not be
- * supported anymore in such a case.</font>
+ * @lucene.experimental
*
* @return a List of byte arrays containing the data of this payload, otherwise null if isPayloadAvailable is false
* @throws java.io.IOException
diff --git a/src/java/org/apache/lucene/store/ChecksumIndexInput.java b/src/java/org/apache/lucene/store/ChecksumIndexInput.java
index d576e20fe84..e868501f71c 100644
--- a/src/java/org/apache/lucene/store/ChecksumIndexInput.java
+++ b/src/java/org/apache/lucene/store/ChecksumIndexInput.java
@@ -22,7 +22,10 @@ import java.util.zip.CRC32;
import java.util.zip.Checksum;
/** Writes bytes through to a primary IndexOutput, computing
- * checksum as it goes. Note that you cannot use seek(). */
+ * checksum as it goes. Note that you cannot use seek().
+ *
+ * @lucene.internal
+ */
public class ChecksumIndexInput extends IndexInput {
IndexInput main;
Checksum digest;
diff --git a/src/java/org/apache/lucene/store/ChecksumIndexOutput.java b/src/java/org/apache/lucene/store/ChecksumIndexOutput.java
index 4073b2a7af6..18058938764 100644
--- a/src/java/org/apache/lucene/store/ChecksumIndexOutput.java
+++ b/src/java/org/apache/lucene/store/ChecksumIndexOutput.java
@@ -22,7 +22,10 @@ import java.util.zip.CRC32;
import java.util.zip.Checksum;
/** Writes bytes through to a primary IndexOutput, computing
- * checksum. Note that you cannot use seek().*/
+ * checksum. Note that you cannot use seek().
+ *
+ * @lucene.internal
+ */
public class ChecksumIndexOutput extends IndexOutput {
IndexOutput main;
Checksum digest;
diff --git a/src/java/org/apache/lucene/store/FileSwitchDirectory.java b/src/java/org/apache/lucene/store/FileSwitchDirectory.java
index 90014022657..bdf3646b7ca 100644
--- a/src/java/org/apache/lucene/store/FileSwitchDirectory.java
+++ b/src/java/org/apache/lucene/store/FileSwitchDirectory.java
@@ -31,8 +31,7 @@ import java.util.Set;
* to this class, and must allow multiple threads to call
* contains at once.</p>
*
- * <p><b>NOTE</b>: this API is new and experimental and is
- * subject to suddenly change in the next release.
+ * @lucene.experimental
*/
public class FileSwitchDirectory extends Directory {
diff --git a/src/java/org/apache/lucene/util/ArrayUtil.java b/src/java/org/apache/lucene/util/ArrayUtil.java
index 55a9a012ccb..ba8e0536d61 100644
--- a/src/java/org/apache/lucene/util/ArrayUtil.java
+++ b/src/java/org/apache/lucene/util/ArrayUtil.java
@@ -19,6 +19,8 @@ package org.apache.lucene.util;
/**
* Methods for manipulating arrays.
+ *
+ * @lucene.internal
*/
public final class ArrayUtil {
/*
diff --git a/src/java/org/apache/lucene/util/BitUtil.java b/src/java/org/apache/lucene/util/BitUtil.java
index 055012a2191..9ee58357ed0 100644
--- a/src/java/org/apache/lucene/util/BitUtil.java
+++ b/src/java/org/apache/lucene/util/BitUtil.java
@@ -18,6 +18,7 @@
package org.apache.lucene.util; // from org.apache.solr.util rev 555343
/** A variety of high efficiency bit twiddling routines.
+ * @lucene.internal
*/
public class BitUtil {
diff --git a/src/java/org/apache/lucene/util/CharacterUtils.java b/src/java/org/apache/lucene/util/CharacterUtils.java
index 54e89dca483..8f5a8af9ede 100644
--- a/src/java/org/apache/lucene/util/CharacterUtils.java
+++ b/src/java/org/apache/lucene/util/CharacterUtils.java
@@ -24,6 +24,8 @@ import java.io.Reader;
* {@link CharacterUtils} provides a unified interface to Character-related
* operations to implement backwards compatible character operations based on a
* {@link Version} instance.
+ *
+ * @lucene.internal
*/
public abstract class CharacterUtils {
private static final Java4CharacterUtils JAVA_4 = new Java4CharacterUtils();
diff --git a/src/java/org/apache/lucene/util/CloseableThreadLocal.java b/src/java/org/apache/lucene/util/CloseableThreadLocal.java
index 78b47fdd42b..97d873fc290 100644
--- a/src/java/org/apache/lucene/util/CloseableThreadLocal.java
+++ b/src/java/org/apache/lucene/util/CloseableThreadLocal.java
@@ -48,6 +48,8 @@ import java.util.Map;
* {@link #close} takes care of all
* threads. You should not call {@link #close} until all
* threads are done using the instance.
+ *
+ * @lucene.internal
*/
public class CloseableThreadLocal<T> implements Closeable {
diff --git a/src/java/org/apache/lucene/util/DummyConcurrentLock.java b/src/java/org/apache/lucene/util/DummyConcurrentLock.java
index 71b70376d8d..de2f46bd29b 100644
--- a/src/java/org/apache/lucene/util/DummyConcurrentLock.java
+++ b/src/java/org/apache/lucene/util/DummyConcurrentLock.java
@@ -24,6 +24,7 @@ import java.util.concurrent.locks.ReentrantLock;
/**
* A dummy lock as a replacement for {@link ReentrantLock} to disable locking
+ * @lucene.internal
*/
public final class DummyConcurrentLock implements Lock {
diff --git a/src/java/org/apache/lucene/util/English.java b/src/java/org/apache/lucene/util/English.java
index ae9f4f20fd2..28eda701964 100644
--- a/src/java/org/apache/lucene/util/English.java
+++ b/src/java/org/apache/lucene/util/English.java
@@ -17,7 +17,9 @@ package org.apache.lucene.util;
* limitations under the License.
*/
-
+/**
+ * @lucene.internal
+ */
public class English {
public static String longToEnglish(long i) {
diff --git a/src/java/org/apache/lucene/util/FieldCacheSanityChecker.java b/src/java/org/apache/lucene/util/FieldCacheSanityChecker.java
index 75c65c12069..7faf3686e25 100644
--- a/src/java/org/apache/lucene/util/FieldCacheSanityChecker.java
+++ b/src/java/org/apache/lucene/util/FieldCacheSanityChecker.java
@@ -44,11 +44,7 @@ import org.apache.lucene.search.FieldCache.CacheEntry;
* Unit tests) to check at run time if the FieldCache contains "insane"
* usages of the FieldCache.
* </p>
- * <p>
- * <b>EXPERIMENTAL API:</b> This API is considered extremely advanced and
- * experimental. It may be removed or altered w/o warning in future releases
- * of Lucene.
- * </p>
+ * @lucene.experimental
* @see FieldCache
* @see FieldCacheSanityChecker.Insanity
* @see FieldCacheSanityChecker.InsanityType
diff --git a/src/java/org/apache/lucene/util/IndexableBinaryStringTools.java b/src/java/org/apache/lucene/util/IndexableBinaryStringTools.java
index a4761087eaf..8a32ece97c4 100644
--- a/src/java/org/apache/lucene/util/IndexableBinaryStringTools.java
+++ b/src/java/org/apache/lucene/util/IndexableBinaryStringTools.java
@@ -50,6 +50,8 @@ import java.nio.ByteBuffer;
* WARNING: This means that the deprecated Buffer-based methods
* only work correctly with buffers that have an offset of 0. For example, they
* will not correctly interpret buffers returned by {@link ByteBuffer#slice}.
+ *
+ * @lucene.experimental
*/
public class IndexableBinaryStringTools {
diff --git a/src/java/org/apache/lucene/util/MapOfSets.java b/src/java/org/apache/lucene/util/MapOfSets.java
index 8d4b2688075..9c189250928 100644
--- a/src/java/org/apache/lucene/util/MapOfSets.java
+++ b/src/java/org/apache/lucene/util/MapOfSets.java
@@ -25,6 +25,7 @@ import java.util.Map;
/**
* Helper class for keeping Lists of Objects associated with keys. <b>WARNING: THIS CLASS IS NOT THREAD SAFE</b>
+ * @lucene.internal
*/
public class MapOfSets<K, V> {
diff --git a/src/java/org/apache/lucene/util/NumericUtils.java b/src/java/org/apache/lucene/util/NumericUtils.java
index 656c363455f..39bb886f0aa 100644
--- a/src/java/org/apache/lucene/util/NumericUtils.java
+++ b/src/java/org/apache/lucene/util/NumericUtils.java
@@ -55,8 +55,7 @@ import org.apache.lucene.search.NumericRangeFilter; // for javadocs
* {@link String#compareTo(String)}) representations of numeric data types for other
* usages (e.g. sorting).
*
- * <p><font color="red"><b>NOTE:</b> This API is experimental and
- * might change in incompatible ways in the next release.</font>
+ * @lucene.experimental
*
* @since 2.9
*/
diff --git a/src/java/org/apache/lucene/util/Parameter.java b/src/java/org/apache/lucene/util/Parameter.java
index c3fe8640e29..7629971bb3b 100644
--- a/src/java/org/apache/lucene/util/Parameter.java
+++ b/src/java/org/apache/lucene/util/Parameter.java
@@ -26,6 +26,7 @@ import java.util.Map;
/**
* A serializable Enum class.
* @deprecated Use Java 5 enum, will be removed in a later Lucene 3.x release.
+ * @lucene.internal
*/
@Deprecated
@SuppressWarnings("serial")
diff --git a/src/java/org/apache/lucene/util/PriorityQueue.java b/src/java/org/apache/lucene/util/PriorityQueue.java
index 68188a93f67..d7311c5060e 100644
--- a/src/java/org/apache/lucene/util/PriorityQueue.java
+++ b/src/java/org/apache/lucene/util/PriorityQueue.java
@@ -23,7 +23,8 @@ package org.apache.lucene.util;
*
* <p><b>NOTE</b>: This class pre-allocates a full array of
* length <code>maxSize+1</code>, in {@link #initialize}.
- *
+ *
+ * @lucene.internal
*/
public abstract class PriorityQueue<T> {
private int size;
diff --git a/src/java/org/apache/lucene/util/RamUsageEstimator.java b/src/java/org/apache/lucene/util/RamUsageEstimator.java
index d598257824c..78f19198d7a 100644
--- a/src/java/org/apache/lucene/util/RamUsageEstimator.java
+++ b/src/java/org/apache/lucene/util/RamUsageEstimator.java
@@ -33,6 +33,8 @@ import java.util.*;
* If checkInterned, all Strings checked will be interned, but those
* that were not already interned will be released for GC when the
* estimate is complete.
+ *
+ * @lucene.internal
*/
public final class RamUsageEstimator {
private MemoryModel memoryModel;
diff --git a/src/java/org/apache/lucene/util/ReaderUtil.java b/src/java/org/apache/lucene/util/ReaderUtil.java
index e4e97b75e96..62749707d01 100644
--- a/src/java/org/apache/lucene/util/ReaderUtil.java
+++ b/src/java/org/apache/lucene/util/ReaderUtil.java
@@ -25,6 +25,7 @@ import org.apache.lucene.index.IndexReader;
/**
* Common util methods for dealing with {@link IndexReader}s.
*
+ * @lucene.internal
*/
public class ReaderUtil {
diff --git a/src/java/org/apache/lucene/util/ScorerDocQueue.java b/src/java/org/apache/lucene/util/ScorerDocQueue.java
index 7c04a9bc091..952672bcaa3 100755
--- a/src/java/org/apache/lucene/util/ScorerDocQueue.java
+++ b/src/java/org/apache/lucene/util/ScorerDocQueue.java
@@ -27,6 +27,8 @@ import org.apache.lucene.search.Scorer;
/** A ScorerDocQueue maintains a partial ordering of its Scorers such that the
least Scorer can always be found in constant time. Put()'s and pop()'s
require log(size) time. The ordering is by Scorer.doc().
+ *
+ * @lucene.internal
*/
public class ScorerDocQueue { // later: SpansQueue for spans with doc and term positions
private final HeapedScorerDoc[] heap;
diff --git a/src/java/org/apache/lucene/util/SimpleStringInterner.java b/src/java/org/apache/lucene/util/SimpleStringInterner.java
index 94b45c8e3ab..725d3b1a917 100755
--- a/src/java/org/apache/lucene/util/SimpleStringInterner.java
+++ b/src/java/org/apache/lucene/util/SimpleStringInterner.java
@@ -19,7 +19,10 @@ package org.apache.lucene.util;
/**
* Simple lockless and memory barrier free String intern cache that is guaranteed
- * to return the same String instance as String.intern() does.
+ * to return the same String instance as String.intern()
+ * does.
+ *
+ * @lucene.internal
*/
public class SimpleStringInterner extends StringInterner {
diff --git a/src/java/org/apache/lucene/util/SmallFloat.java b/src/java/org/apache/lucene/util/SmallFloat.java
index 01fb42bec05..986a62128af 100644
--- a/src/java/org/apache/lucene/util/SmallFloat.java
+++ b/src/java/org/apache/lucene/util/SmallFloat.java
@@ -17,6 +17,8 @@ package org.apache.lucene.util;
/** Floating point numbers smaller than 32 bits.
+ *
+ * @lucene.internal
*/
public class SmallFloat {
diff --git a/src/java/org/apache/lucene/util/StringHelper.java b/src/java/org/apache/lucene/util/StringHelper.java
index 36675ec0277..bb33f5046ae 100644
--- a/src/java/org/apache/lucene/util/StringHelper.java
+++ b/src/java/org/apache/lucene/util/StringHelper.java
@@ -20,6 +20,8 @@ package org.apache.lucene.util;
/**
* Methods for manipulating strings.
+ *
+ * @lucene.internal
*/
public abstract class StringHelper {
/**
diff --git a/src/java/org/apache/lucene/util/UnicodeUtil.java b/src/java/org/apache/lucene/util/UnicodeUtil.java
index b58a2f49099..c0c9d9161be 100644
--- a/src/java/org/apache/lucene/util/UnicodeUtil.java
+++ b/src/java/org/apache/lucene/util/UnicodeUtil.java
@@ -54,8 +54,7 @@ package org.apache.lucene.util;
* without always allocating a new byte[] as
* String.getBytes("UTF-8") does.
*
- * <p><b>WARNING</b>: This API is a new and experimental and
- * may suddenly change. </p>
+ * @lucene.internal
*/
final public class UnicodeUtil {
@@ -72,6 +71,9 @@ final public class UnicodeUtil {
private static final long HALF_SHIFT = 10;
private static final long HALF_MASK = 0x3FFL;
+ /**
+ * @lucene.internal
+ */
public static final class UTF8Result {
public byte[] result = new byte[10];
public int length;
@@ -84,6 +86,9 @@ final public class UnicodeUtil {
}
}
+ /**
+ * @lucene.internal
+ */
public static final class UTF16Result {
public char[] result = new char[10];
public int[] offsets = new int[10];
diff --git a/src/java/org/apache/lucene/util/VirtualMethod.java b/src/java/org/apache/lucene/util/VirtualMethod.java
index 662fc536b2a..8e9c8403285 100644
--- a/src/java/org/apache/lucene/util/VirtualMethod.java
+++ b/src/java/org/apache/lucene/util/VirtualMethod.java
@@ -54,6 +54,8 @@ import java.util.Set;
* The one with the larger distance should be used preferable.
* This way also more complicated method rename scenarios can be handled
* (think of 2.9 {@code TokenStream} deprecations).</p>
+ *
+ * @lucene.internal
*/
public final class VirtualMethod<C> {
diff --git a/src/java/org/apache/lucene/util/cache/Cache.java b/src/java/org/apache/lucene/util/cache/Cache.java
index 1c42533f004..740321a7978 100644
--- a/src/java/org/apache/lucene/util/cache/Cache.java
+++ b/src/java/org/apache/lucene/util/cache/Cache.java
@@ -21,6 +21,8 @@ import java.io.Closeable;
/**
* Base class for cache implementations.
+ *
+ * @lucene.internal
*/
public abstract class Cache<K,V> implements Closeable {
diff --git a/src/java/org/apache/lucene/util/cache/DoubleBarrelLRUCache.java b/src/java/org/apache/lucene/util/cache/DoubleBarrelLRUCache.java
index cf7307ab0af..6da2d2ca8a4 100644
--- a/src/java/org/apache/lucene/util/cache/DoubleBarrelLRUCache.java
+++ b/src/java/org/apache/lucene/util/cache/DoubleBarrelLRUCache.java
@@ -38,11 +38,7 @@ import java.util.Map;
* not grow unbounded in size when under hideously high
* load.</p>
*
- * <p>NOTE: this class is meant only to be used internally
- * by Lucene; it's only public so it can be shared across
- * packages. This means the API is freely subject to
- * change, and, the class could be removed entirely, in any
- * Lucene release. Use directly at your own risk!
+ * @lucene.internal
*/
final public class DoubleBarrelLRUCache<K,V> extends Cache<K,V> {
diff --git a/src/java/org/apache/lucene/util/cache/SimpleLRUCache.java b/src/java/org/apache/lucene/util/cache/SimpleLRUCache.java
index 1b41c124072..c0a4211e773 100644
--- a/src/java/org/apache/lucene/util/cache/SimpleLRUCache.java
+++ b/src/java/org/apache/lucene/util/cache/SimpleLRUCache.java
@@ -27,6 +27,8 @@ import java.util.Map;
*
* @deprecated Lucene's internal use of this class has now
* switched to {@link DoubleBarrelLRUCache}.
+ *
+ * @lucene.internal
*/
@Deprecated
public class SimpleLRUCache<K,V> extends SimpleMapCache<K,V> {
diff --git a/src/java/org/apache/lucene/util/cache/SimpleMapCache.java b/src/java/org/apache/lucene/util/cache/SimpleMapCache.java
index a8189ff7c48..47d0541a48f 100644
--- a/src/java/org/apache/lucene/util/cache/SimpleMapCache.java
+++ b/src/java/org/apache/lucene/util/cache/SimpleMapCache.java
@@ -28,6 +28,8 @@ import java.util.Set;
*
* @deprecated Lucene's internal use of this class has now
* switched to {@link DoubleBarrelLRUCache}.
+ *
+ * @lucene.internal
*/
@Deprecated
public class SimpleMapCache<K,V> extends Cache<K,V> {