delete document with this id and then add document with the same id.
Jian
On 9/10/05, Filip Anselm <filip@nable.dk> wrote:
>
> ...well the title says it all
>
> I index some documents - all with the same fields... One of the fields,
> "id" is unique for the indexed documents. If i try to index a document
> with an id, that is already indexed - the old document should be updated
> or replaced with the new document, so that I avoid indexed documents
> with the same id. How is the best way to do this?
>
> thanks
>
> - Filip
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
|