Sorry I'm not quite sure what you mean - I do store threadid with every document already - is there a way to append to a single thread's body field?
cheers, Toby -----Original Message----- From: Peter M Cipollone [mailto:[EMAIL PROTECTED] Sent: Thursday, 1 July 2004 10:44 AM To: Lucene Users List Subject: Re: Adding to an existing document ----- Original Message ----- From: "Toby Tremayne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 30, 2004 8:28 PM Subject: Adding to an existing document > > Hi all, > > I have an index which contains information from a forum database > > > > - one document per thread, containing all messages in a big text field. If > I wanted to add a new message string to and existing thread, is there some > way I can append it to the document? In Lucene, the only way to modify a document is to delete it and replace it with the new version. Given that you are working with discussion threads, you might instead consider adding fields for thread ID and thread serial number to each article. You could then append to threads, view entire threads in order or delete threads as you wish using Lucene's APIs. Pete > > > > cheers, > > Toby > > > > ------------------------------------------------------------------- > > > > Life is poetry - write it in your own words > > > > ------------------------------------------------------------------- > > > > Toby Tremayne > > Code Poet and Zen Master of the Heavy Sleep > > Lonely Planet Publications > > +61 416 048 090 > > ICQ: 13107913 > > > > > > ______________________________________________________________________ > This email, including attachments, is intended only for the addressee > and may be confidential, privileged and subject to copyright. If you > have received this email in error, please advise the sender and delete > it. If you are not the intended recipient of this email, you must not > use, copy or disclose its content to anyone. You must not copy or > communicate to others content that is confidential or subject to > copyright, unless you have the consent of the content owner. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
