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 Vincent Pérès <vi...@gmail.com> on 2009/05/15 15:45:06 UTC

How to update only few fields in a document

Hello,

I did just find only post about updating document, maybe things evolved
since that time.
I need to update a field in few thousand documents in one time (or multiple
request), but I wouldn't like to have to add a new document instead of the
current one (I mean it's how it works if I well understand).

Example :
curl http://localhost:8982/solr/update --data-binary '<add><doc><field
name="id">1</field><field name="rating">5</field></doc><doc><field
name="id">2</field><field name="rating">2</field></doc></add>' -H
'Content-type:text/xml; charset=utf-8'

This request will replace the current documents by two new one. The
documents contains big text parts and I wouldn't have to send them every
time.

Is there any feature which could allow me to do that?

Thanks !
Vincent
-- 
View this message in context: http://www.nabble.com/How-to-update-only-few-fields-in-a-document-tp23560169p23560169.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to update only few fields in a document

Posted by Vincent Pérès <vi...@gmail.com>.
Hello,

I went through the ticket but it seems that nothing is envisaged until
version 1.5

Thanks for your answer !!

Vincent



Otis Gospodnetic wrote:
> 
> 
> Vincent,
> 
> Unfortunately things haven't changed yet.  If all your fields are stored,
> have a look at SOLR-139.
> 
> 
> Otis --
> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch
> 
> 
> 
> ----- Original Message ----
>> From: Vincent Pérès <vi...@gmail.com>
>> To: solr-user@lucene.apache.org
>> Sent: Friday, May 15, 2009 9:45:06 AM
>> Subject: How to update only few fields in a document
>> 
>> 
>> Hello,
>> 
>> I did just find only post about updating document, maybe things evolved
>> since that time.
>> I need to update a field in few thousand documents in one time (or
>> multiple
>> request), but I wouldn't like to have to add a new document instead of
>> the
>> current one (I mean it's how it works if I well understand).
>> 
>> Example :
>> curl http://localhost:8982/solr/update --data-binary '
>> name="id">15
>> name="id">22' -H
>> 'Content-type:text/xml; charset=utf-8'
>> 
>> This request will replace the current documents by two new one. The
>> documents contains big text parts and I wouldn't have to send them every
>> time.
>> 
>> Is there any feature which could allow me to do that?
>> 
>> Thanks !
>> Vincent
>> -- 
>> View this message in context: 
>> http://www.nabble.com/How-to-update-only-few-fields-in-a-document-tp23560169p23560169.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-update-only-few-fields-in-a-document-tp23560169p23595879.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to update only few fields in a document

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Vincent,

Unfortunately things haven't changed yet.  If all your fields are stored, have a look at SOLR-139.


Otis --
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: Vincent Pérès <vi...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Friday, May 15, 2009 9:45:06 AM
> Subject: How to update only few fields in a document
> 
> 
> Hello,
> 
> I did just find only post about updating document, maybe things evolved
> since that time.
> I need to update a field in few thousand documents in one time (or multiple
> request), but I wouldn't like to have to add a new document instead of the
> current one (I mean it's how it works if I well understand).
> 
> Example :
> curl http://localhost:8982/solr/update --data-binary '
> name="id">15
> name="id">22' -H
> 'Content-type:text/xml; charset=utf-8'
> 
> This request will replace the current documents by two new one. The
> documents contains big text parts and I wouldn't have to send them every
> time.
> 
> Is there any feature which could allow me to do that?
> 
> Thanks !
> Vincent
> -- 
> View this message in context: 
> http://www.nabble.com/How-to-update-only-few-fields-in-a-document-tp23560169p23560169.html
> Sent from the Solr - User mailing list archive at Nabble.com.