Apache Lucene open-source search software
LUCENE-3312: Apply patch lucene-3312-patch-13.patch
Uwe Schindler36014af614c8
diff --git a/lucene/core/src/java/org/apache/lucene/analysis/package.html b/lucene/core/src/java/org/apache/lucene/analysis/package.htmlindex 0495e488486..2bc7d229700 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/package.html+++ b/lucene/core/src/java/org/apache/lucene/analysis/package.html@@ -168,7 +168,7 @@ and proximity searches (though sentence identification is not provided by Lucene<ul><li>At indexing, as a consequence of- {@link org.apache.lucene.index.IndexWriter#addDocument(Iterable) addDocument(doc)},+ {@link org.apache.lucene.index.IndexWriter#addDocument(IndexDocument) addDocument(doc)},the Analyzer in effect for indexing is invoked for each indexed field of the added document.</li><li>@@ -241,7 +241,7 @@ and proximity searches (though sentence identification is not provided by Lucene</p><h3>Field Section Boundaries</h3><p>- When {@link org.apache.lucene.document.Document#add(org.apache.lucene.index.IndexableField) document.add(field)}+ When {@link org.apache.lucene.document.Document#add(org.apache.lucene.document.Field) document.add(field)}is called multiple times for the same field name, we could say that each such call creates a newsection for that field in that document.In fact, a separate call todiff --git a/lucene/core/src/java/org/apache/lucene/codecs/StoredFieldsWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/StoredFieldsWriter.javaindex 2b360c80a23..3541da80e5b 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/StoredFieldsWriter.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/StoredFieldsWriter.java@@ -69,7 +69,7 @@ public abstract class StoredFieldsWriter implements Closeable {/** Merges in the stored fields from the readers in* <code>mergeState</code>. The default implementation skips* over deleted documents, and uses {@link #startDocument(int)},- * {@link #writeField(FieldInfo, StorableField)}, and {@link #finish(int)},+ * {@link #writeField(FieldInfo, StorableField)}, and {@link #finish(FieldInfos, int)},* returning the number of documents that were written.* Implementations can override this method for more sophisticated* merging (bulk-byte copying, etc). */diff --git a/lucene/core/src/java/org/apache/lucene/document/Document.java b/lucene/core/src/java/org/apache/lucene/document/Document.javaindex 60673493840..95cf80598ac 100644--- a/lucene/core/src/java/org/apache/lucene/document/Document.java+++ b/lucene/core/src/java/org/apache/lucene/document/Document.java@@ -56,7 +56,6 @@ public final class Document implements IndexDocument{* Creates a Document from StoredDocument so it that can be used e.g. for another* round of indexing.*- * @return a new instance of Document representation of this StoredDocument*/public Document(StoredDocument storedDoc) {for (StorableField field : storedDoc.getFields()) {diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.javaindex 0ddb3acc2f5..d371c3829b2 100644--- a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java+++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java@@ -69,10 +69,10 @@ import org.apache.lucene.util.ThreadInterruptedException;new index if there is not already an index at the provided pathand otherwise open the existing index.</p>- <p>In either case, documents are added with {@link #addDocument(Iterable)+ <p>In either case, documents are added with {@link #addDocument(IndexDocument)addDocument} and removed with {@link #deleteDocuments(Term)} or {@link#deleteDocuments(Query)}. A document can be updated with {@link- #updateDocument(Term, Iterable) updateDocument} (which just deletes+ #updateDocument(Term, IndexDocument) updateDocument} (which just deletesand then adds the entire document). When finished adding, deletingand updating documents, {@link #close() close} should be called.</p>@@ -1096,7 +1096,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {* Adds a document to this index, using the provided analyzer instead of the* value of {@link #getAnalyzer()}.*- * <p>See {@link #addDocument(Iterable)} for details on+ * <p>See {@link #addDocument(IndexDocument)} for details on* index and IndexWriter state after an Exception, and* flushing/merging temporary free space requirements.</p>*@@ -1132,7 +1132,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {* perhaps to obtain better index compression), in which case* you may need to fully re-index your documents at that time.*- * <p>See {@link #addDocument(Iterable)} for details on+ * <p>See {@link #addDocument(IndexDocument)} for details on* index and IndexWriter state after an Exception, and* flushing/merging temporary free space requirements.</p>*diff --git a/lucene/core/src/java/overview.html b/lucene/core/src/java/overview.htmlindex 14929b9c49f..ac0419255e5 100644--- a/lucene/core/src/java/overview.html+++ b/lucene/core/src/java/overview.html@@ -130,7 +130,7 @@ adding<li>Create an {@link org.apache.lucene.index.IndexWriter IndexWriter}-and add documents to it with {@link org.apache.lucene.index.IndexWriter#addDocument(Iterable) addDocument()};</li>+and add documents to it with {@link org.apache.lucene.index.IndexWriter#addDocument(org.apache.lucene.index.IndexDocument) addDocument()};</li><li>Call <a href="../queryparser/org/apache/lucene/queryparser/classic/QueryParserBase.html#parse(java.lang.String)">QueryParser.parse()</a>diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/RandomIndexWriter.java b/lucene/test-framework/src/java/org/apache/lucene/index/RandomIndexWriter.javaindex 0318003f5cf..b038fbac62a 100644--- a/lucene/test-framework/src/java/org/apache/lucene/index/RandomIndexWriter.java+++ b/lucene/test-framework/src/java/org/apache/lucene/index/RandomIndexWriter.java@@ -139,7 +139,7 @@ public class RandomIndexWriter implements Closeable {/*** Adds a Document.- * @see IndexWriter#addDocument(Iterable)+ * @see IndexWriter#addDocument(org.apache.lucene.index.IndexDocument)*/public <T extends IndexableField> void addDocument(final IndexDocument doc) throws IOException {addDocument(doc, w.getAnalyzer());@@ -285,7 +285,7 @@ public class RandomIndexWriter implements Closeable {/*** Updates a document.- * @see IndexWriter#updateDocument(Term, Iterable)+ * @see IndexWriter#updateDocument(Term, org.apache.lucene.index.IndexDocument)*/public <T extends IndexableField> void updateDocument(Term t, final IndexDocument doc) throws IOException {if (doDocValues) {