lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Eck" <tim...@gmail.com>
Subject RE: Can I add new field values to a existing lucene index ?
Date Wed, 28 Mar 2012 18:30:52 GMT
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@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
<anupamb82@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org



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


Mime
View raw message