Apache Solr open-source search software
add missing javadoc
Simon Willnauer05aeaba5d570
diff --git a/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java b/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.javaindex f1e6044f9b5..cbcb82f0637 100644--- a/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java+++ b/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java@@ -367,10 +367,28 @@ public class MemoryIndex {** @see org.apache.lucene.document.Field#setBoost(float)*/-public void addField(String fieldName, TokenStream stream, float boost) {addField(fieldName, stream, boost, 0);}++ /**+ * Iterates over the given token stream and adds the resulting terms to the index;+ * Equivalent to adding a tokenized, indexed, termVectorStored, unstored,+ * Lucene {@link org.apache.lucene.document.Field}.+ * Finally closes the token stream. Note that untokenized keywords can be added with this method via+ * {@link #keywordTokenStream(Collection)}, the Lucene <code>KeywordTokenizer</code> or similar utilities.+ *+ * @param fieldName+ * a name to be associated with the text+ * @param stream+ * the token stream to retrieve tokens from.+ * @param boost+ * the boost factor for hits for this field+ * @param positionIncrementGap+ * the position increment gap if fields with the same name are added more than once+ *+ * @see org.apache.lucene.document.Field#setBoost(float)+ */public void addField(String fieldName, TokenStream stream, float boost, int positionIncrementGap) {try {if (fieldName == null)