Hi https://builds.apache.org/job/Lucene-trunk/javadoc/core/org/apache/lucene/document/DocValuesField.html
The documentation at the above link indicates that the optimal way to add a DocValues field is to create it once and change the value as we are indexing multiple documents. It also mentions that the Document should be created only once and re-used. Does this mean that the optimal way of adding non DocValues fields for now is doc.removeField(fieldName); doc.add(new Field(fieldName, newValue, fieldType); If this is the pattern that users should follow while creating documents, would it be possible to augment the Document class to do this in a single method? regards Sudarshan -- Sudarshan Gaikaiwari www.sudarshan.org sudars...@acm.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org