Taking this to java-dev: Since this is such a common issue, would it
be feasible for Lucene to have some sort of capability to be told
what field is the unique one and automatically update (delete, and
add) a document added with a duplicate of a unique field? This
would probably require that Lucene enforce this uniqueness during an
add, though, right?
On 31 Oct 2005, at 14:58, Chris Hostetter wrote:
: I've 4 fields in a document ie. id, URL, modified date,
contents. id is
: unique for each document. I wanted to know if I index a document
with
: the same id again , will the previous document (in the index) be
: overwritten or do I have to delete the index for that document
first and
: then re index the modified one.
Lucene has no notion of a "unique field" ... you will need to delete
the old record ... but you don't neccessarily need to delete it first.
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]