Unfortunately, because of how Lucene works internally, you will not be able
to update just one or two fields. You have to resubmit the entire document.

If you only send just one or two fields, then the updated document will only
have the fields sent in the last update.

On Mon, Mar 1, 2010 at 7:09 AM, Suram <reactive...@yahoo.com> wrote:

>
>
>
> Siddhant wrote:
> >
> > Yes. You can just re-add the document with your changes, and the rest of
> > the
> > fields in the document will remain unchanged.
> >
> > On Mon, Mar 1, 2010 at 5:09 PM, Suram <reactive...@yahoo.com> wrote:
> >
> >>
> >> Hi,
> >>
> >> <doc>
> >>   <field name="id">EN7800GTX/2DHTV/256M</field>
> >>  <field name="manu">ASUS Computer Inc.</field>
> >>  <field name="cat">electronics</field>
> >>  <field name="cat">graphics card</field>
> >>  <field name="features">NVIDIA GeForce 7800 GTX GPU/VPU clocked at
> >> 486MHz</field>
> >>  <field name="features">256MB GDDR3 Memory clocked at 1.35GHz</field>
> >>  <field name="price">479.95</field>
> >>  <field name="popularity">7</field>
> >>  <field name="inStock">false</field>
> >>  <field name="manufacturedate_dt">2006-02-13T15:26:37Z/DAY</field>
> >> </doc>
> >>
> >> can i possible to update <field name="inStock">true</field> without
> >> affect
> >> any field of my previous document
> >>
> >> Thanks in advance
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/updating-particular-field-tp27742399p27742399.html
> >> Sent from the Solr - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > - Siddhant
> >
> >
>
>
> Hi,
>       Here i don't want to reload entire data just i want u update a field
> i need to change(ie one or more field with id not whole)
>
>
> --
> View this message in context:
> http://old.nabble.com/updating-particular-field-tp27742399p27742671.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
"Good Enough" is not good enough.
To give anything less than your best is to sacrifice the gift.
Quality First. Measure Twice. Cut Once.
http://www.israelekpo.com/

Reply via email to