
timeck at gmail
Mar 28, 2012, 11:30 AM
Post #3 of 4
(511 views)
Permalink
|
|
RE: Can I add new field values to a existing lucene index ?
[In reply to]
|
|
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:lucene [at] mikemccandless] Sent: Wednesday, March 28, 2012 5:31 AM To: java-user [at] lucene 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 <anupamb82 [at] gmail> 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-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene
|