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:[email protected]] Sent: Wednesday, March 28, 2012 5:31 AM To: [email protected] 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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
