lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <>
Subject Re: can lucene be backed to have an update field
Date Tue, 09 Nov 2004 22:16:55 GMT

On Tuesday 09 November 2004 22:54, Chris Fraschetti wrote:
> Is it possible to modify the lucene source to create an
> updateDocument(doc#, FIELD, value)  function ? ....

It's possible, but an implementation would not be efficient
when the field is indexed. The current index structure
has no room to spare for insertions, and no provision for
deleted terms.

Some time ago an extra level was added in the index
for skipping ahead more efficiently. Perhaps that could
be combined with a gap for insertions. But when such a gap
would fill up there would again be no choice but to delete and add 
the changed document.
Also adding a document without optimizing is quite efficient
already, so there is probably not much interest in adding
such gaps.

In case the field is stored only and the value would have the
same length as the currently stored value it would be possible
to replace the value efficiently.

The only updates available are on the field norms.
Paul Elschot

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message