It's also possible to create your own code that uses FieldsReader and
FieldsWriter (both in org.apache.lucene.index) directly to create new
fdx/fdt files, with the date fixed on each document. You'd have to
enumerate over all segments in your index, create a FieldsReader
instance on each
Robert Stewart wrote:
Given an existing index, is there any way to update the value of a
particular field across all documents, without deleting/re-indexing
documents? For instance, if I have a date field, and I need to
offset all dates based on change to stored time zone (subtract 12
hours from