You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Adeel Qureshi <ad...@gmail.com> on 2011/07/07 19:24:50 UTC

updating documents while keeping unspecified fields

What I am trying to do is to update a document information while keeping
data for the fields that arent being specified in the update.

So e.g. if this is the schema

<doc>
<field name="id">123</field>
<field name="title">some title</field>
<field name="status">active</field>
</doc>

if i send

<doc>
<field name="id">123</field>
<field name="status">closed</field>
</doc>

it should update the status to be closed for this document but not wipe out
title since it wasnt provided in the updated data. Is that possible by using
some flags or something ???

Thanks
Adeel

Re: updating documents while keeping unspecified fields

Posted by Juan Grande <ju...@gmail.com>.
Hi Adeel,

As far as I know, this isn't possible yet, but some work is being done:

https://issues.apache.org/jira/browse/SOLR-139
https://issues.apache.org/jira/browse/SOLR-828

Regards,

*Juan*



On Thu, Jul 7, 2011 at 2:24 PM, Adeel Qureshi <ad...@gmail.com>wrote:

> What I am trying to do is to update a document information while keeping
> data for the fields that arent being specified in the update.
>
> So e.g. if this is the schema
>
> <doc>
> <field name="id">123</field>
> <field name="title">some title</field>
> <field name="status">active</field>
> </doc>
>
> if i send
>
> <doc>
> <field name="id">123</field>
> <field name="status">closed</field>
> </doc>
>
> it should update the status to be closed for this document but not wipe out
> title since it wasnt provided in the updated data. Is that possible by
> using
> some flags or something ???
>
> Thanks
> Adeel
>