Then I think you'll be disappointed. Search the archive for phrases like "update in place" and you'll see a discussion of why this isn't as straight-forward as you might think.
Best Erick On 7/9/07, Sonu SR <[EMAIL PROTECTED]> wrote:
Thanks Erik. Is the field update is too difficult task in lucene? I expect this feature also in lucene, in near future. On 7/9/07, Erick Erickson <[EMAIL PROTECTED]> wrote: > > No, Lucene doesn't support just updating a field in a document. You > must delete/re-add it as you suppose. > > And you are correct, the UpdateDocument feature just conceals the > underlying delete/add functionality, it's not update-in-place. > > Best > Erick > > On 7/9/07, Sonu SR <[EMAIL PROTECTED]> wrote: > > > > Hi, > > My application using lucene index. The index documents having number of > > fields. We have around 5 million such documents. I have problem with > > regular > > update of some of the fields in the document. So every update I need to > > delete and index that updated documents. This is a huge task. I know > from > > version 2.1 lucene added update Document feature. But I think this is > also > > just like my process(first delete and index). Is lucene supports the > > update > > of particular fields only, like database? ie:- without deleting the > > document > > > > Thanks, > > Sonu > > >
