lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: svn commit: r557445 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/document/Field.java src/test/org/apache/lucene/document/TestDocument.java
Date Thu, 19 Jul 2007 05:22:52 GMT
mikemccand wrote:
> +  /** Expert: change the value of this field.  This can be
> +   *  used during indexing to re-use a single Field instance
> +   *  to improve indexing speed. */
> +  public void setValue(String value) {

Would it make sense to warn from modifying the field
value before the doc was added?
Something like:
  Note that fields reuse means adding the same field instance
  to multiple documents. You cannot reuse a field instance
  for adding multiple fields to the same document."


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message