Use "set" instead of "add".

See:
http://wiki.apache.org/solr/UpdateJSON#Atomic_Updates

-- Jack Krupansky

-----Original Message----- From: anurag.jain
Sent: Monday, February 18, 2013 6:09 AM
To: solr-user@lucene.apache.org
Subject: Re: Updating data

Hi,

i got a problem.

problem is i have json file

[
 {
     "id":"5",
      "is_good":{"add":"1"}
  },
 {
     "id":"1",
      "is_good":{"add":"1"}
  },
 {
     "id":"2",
      "is_good":{"add":"1"}
  },
 {
     "id":"3",
      "is_good":{"add":"1"}
  }
]


now due to stopping of tomcat only one of doc ["id":5]added in solr.

now if i am trying again to post this file for update. it is giving me error
"multivalue ...".

becoz "id":5 already updated ..   due to this remaining id is not updating
in solr. i have 250000 lakh doc  in a json file. please give me some idea..



--
View this message in context: http://lucene.472066.n3.nabble.com/Updating-data-tp4038492p4041123.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to