lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei Wang <welshw...@gmail.com>
Subject Reuse Document
Date Sun, 07 Apr 2013 06:41:48 GMT
Lucene encourages to re-use Document by setting new values for Fields
contained within a Document object. This assumes there is no change to the
number and types of Fields contained in a Document object during indexing.

If the number and types of Fields contained in a Document object changes
from time to time, is it possible to remove all Field at once using
function similar to clear() for Collection object? In this way we can at
least reuse the Document object. It is inconvenient to use removeField()
and removeFields() since it requires enumerating field names.

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message