Hi!! Thank you very much,Koji!! Your response has helped me a lot and I have already managed to update the document.Now,I have another problem: Sending the update request to Solr:
For example: http://localhost:8389/solr/update?mode=tags:overwrite&commit=true <add> <doc> <field name="id">AAA</field> <field name="tags">German</field> </doc> </add> After that step,I realized that the "id" field,(defined in my schema.xml as an uniqueKey field) appears as a multivalued field,with two "fields" with the same value.Do you know which may be the reason for this behavior? Thank you, Regards! Koji Sekiguchi-2 wrote: > > You don't need any additional attributes in schema.xml, but the field > should be stored. > You can overwrite the existing field value of the doc AAA w/ > the following XML: > > <add> > <doc> > <field name="id">AAA</field> > <field name="tags">German</field> > </doc> > </add> > > and post the following URL: > > http://localhost:8389/solr/update?mode=tags:overwrite&commit=true > > If the tags field is defined as multivalued="true", you can append new > tags: > > http://localhost:8389/solr/update?mode=tags:append&commit=true > <add> > <doc> > <field name="id">AAA</field> > <field name="tags">Japanese</field> > <field name="tags">French</field> > </doc> > </add> > > For number fields, you can use "increment" command. > > Note that the mode parameter can be acceptable one or more name:command > pairs: > > mode=fieldName1:command1,fieldName2:command2,... > > Thank you, > > Koji > > > nutchvf wrote: >> Hi! >> There are any option to update a field (or a set of fields) of a document >> indexed in Solr,without having to update all the fields of the entire >> document??? >> I have seen the SOLR-139 patch,but I do not know what is the proper >> syntax >> of the command (or the xml to post) to update the document.Is required an >> additional tag in the schema.xml describing the updatable property??? >> >> For example: >> >> <field name="name" type="text" updateable="true" indexed="true" >> stored="true"/> >> >> Please,I hope any suggestion....!!! >> >> What is the xml required for the updating???For example,something like >> this: >> >> <add mode="popularity=OVERWRITE"> >> <field name="id">SOLR1000</field> >> <field name="popularity">9</field> >> </add> >> >> >> Regards.. >> > > > -- View this message in context: http://www.nabble.com/Updating-in-Solr.SOLR-139-tp16744841p16848600.html Sent from the Solr - User mailing list archive at Nabble.com.