So each and every one of your original fields has stored="true", not just
the authorGender field?
The only exception can be the dest fields in copyField directives.
Best
Erick
On Tue, Nov 27, 2012 at 6:58 AM, Darniz wrote:
> yes here is the snippet from schema.xml file
> omitNorms="true"/>
>
Are all your fields marked as "stored" in your schema? This is a
requirement for atomic updates.
/Martin Koch
On Mon, Nov 26, 2012 at 7:58 PM, Darniz wrote:
> i tried using the same logic to update a specific field and to my surprise
> all my other fields were lost. i had a doc with almost 50
For multi-valued fields, you can use "add" to add a value to the list. If the
value already exists, it will be there twice.
"set" will replace the entire list with the one value that you specify.
There's currently no method to remove a value, although the issue has been
logged: https://issues.apa
jimtronic gmail.com> writes:
>
> Actually, the correct method appears to be this:
>
> an atomic update in JSON:
> {
> "id" : "book1",
> "author" : {"set":"Neal Stephenson"}
> }
>
> the same in XML:
>
>
>
> book1
> Neal Stephenson
>
>
>
> Jim
>
> --
It would be nice to get this doc added to the Update wiki:
http://wiki.apache.org/solr/UpdateXmlMessages
-- Jack Krupansky
-Original Message-
From: jimtronic
Sent: Thursday, September 13, 2012 2:41 PM
To: solr-user@lucene.apache.org
Subject: Re: How to post atomic updates using xml
Actually, the correct method appears to be this:
an atomic update in JSON:
{
"id" : "book1",
"author" : {"set":"Neal Stephenson"}
}
the same in XML:
book1
Neal Stephenson
Jim
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to
Figured it out.
in JSON:
{"id" : "book1",
"author" : {"set":"Neal Stephenson"}
}
in XML:
book1
This seems to work.
Jim
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-to-post-atomic-updates-using-xml-tp4007323p4007325.html
Sent from the Solr - User mai