Index: lucene/core/src/java/org/apache/lucene/analysis/package.html =================================================================== --- lucene/core/src/java/org/apache/lucene/analysis/package.html (revision 1373782) +++ lucene/core/src/java/org/apache/lucene/analysis/package.html (working copy) @@ -168,7 +168,7 @@
- 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 new
section for that field in that document.
In fact, a separate call to
Index: lucene/core/src/java/org/apache/lucene/codecs/StoredFieldsWriter.java
===================================================================
--- lucene/core/src/java/org/apache/lucene/codecs/StoredFieldsWriter.java (revision 1373782)
+++ lucene/core/src/java/org/apache/lucene/codecs/StoredFieldsWriter.java (working copy)
@@ -69,7 +69,7 @@
/** Merges in the stored fields from the readers in
* mergeState. 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). */
Index: lucene/core/src/java/org/apache/lucene/document/Document.java
===================================================================
--- lucene/core/src/java/org/apache/lucene/document/Document.java (revision 1373782)
+++ lucene/core/src/java/org/apache/lucene/document/Document.java (working copy)
@@ -56,7 +56,6 @@
* 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()) {
Index: lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
===================================================================
--- lucene/core/src/java/org/apache/lucene/index/IndexWriter.java (revision 1373782)
+++ lucene/core/src/java/org/apache/lucene/index/IndexWriter.java (working copy)
@@ -69,10 +69,10 @@
new index if there is not already an index at the provided path
and otherwise open the existing index.
In either case, documents are added with {@link #addDocument(Iterable) +
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 deletes and then adds the entire document). When finished adding, deleting and updating documents, {@link #close() close} should be called.
@@ -1096,7 +1096,7 @@ * Adds a document to this index, using the provided analyzer instead of the * value of {@link #getAnalyzer()}. * - *See {@link #addDocument(Iterable)} for details on + *
See {@link #addDocument(IndexDocument)} for details on * index and IndexWriter state after an Exception, and * flushing/merging temporary free space requirements.
* @@ -1132,7 +1132,7 @@ * perhaps to obtain better index compression), in which case * you may need to fully re-index your documents at that time. * - *See {@link #addDocument(Iterable)} for details on + *
See {@link #addDocument(IndexDocument)} for details on * index and IndexWriter state after an Exception, and * flushing/merging temporary free space requirements.
* Index: lucene/core/src/java/overview.html =================================================================== --- lucene/core/src/java/overview.html (revision 1373782) +++ lucene/core/src/java/overview.html (working copy) @@ -130,7 +130,7 @@