Excuse my ignorance of lucene internals, but is the problem any easier if
the requirement is just to allow the addition/removal of stored only fields
(as opposed to indexed)? 

I suspect this wasn't intent of the original question, but a document can
certainly be deleted and re-added to the index with a new set of fields. 

-----Original Message-----
From: Michael McCandless [mailto:luc...@mikemccandless.com] 
Sent: Wednesday, March 28, 2012 5:31 AM
To: java-user@lucene.apache.org
Subject: Re: Can I add new field values to a existing lucene index ?

Alas, no, not yet.  This is an oft-requested feature, but challenging to
build.

That said, there is a possible start towards making something possible in
4.0:

  https://issues.apache.org/jira/browse/LUCENE-3837

Mike McCandless

http://blog.mikemccandless.com

On Wed, Mar 28, 2012 at 8:16 AM, Anupam Bhattacharya
<anupam...@gmail.com> wrote:
> Does Lucene API allows to add new field values to a existing doc.
>
> For example,
> Initially
>
>  Doc 1    FieldName Value  id 1  schoolname xyz  zipcode pqr
>
>
> After update can I keep the existing field values and add 2 more fields.
>
>  Doc 1    FieldName Value  id 1  schoolname xyz  zipcode pqr  *telephone*
*
> 112233*  *grade* *10*

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to